Have function.func_globals always be dict-like
Internally we store it as either-dict-or-module, but when we expose it to Python it needs to be given back as a mapping. I looked briefly into switching the internal representation, but that seemed like a much more invasive change. Also, add a pytest test that exposed this issue.
Showing
Please register or sign in to comment