• Jeremy Hylton's avatar
    add namespace attr to CodeGenerator, can be either MODULE_NAMESPACE or · 3e0910c1
    Jeremy Hylton authored
    FUNCTION_NAMESPACE.  initialize in __init__ and reset in
    generateFunctionCode.
    
    replace direct issue of STORE_FAST, STORE_GLOBAL, etc. with call to
    storeName; same for loadName and deleteName
    
    the new {store,load,delete}Name methods use the namespace attr and the
    local variable stack to determine the correct bytecode to issue
    3e0910c1
pycodegen.py 30.9 KB