• Kevin Modzelewski's avatar
    Have function.func_globals always be dict-like · 7625b86d
    Kevin Modzelewski authored
    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.
    7625b86d
types.cpp 171 KB