]> granicus.if.org Git - python/commit
add namespace attr to CodeGenerator, can be either MODULE_NAMESPACE or
authorJeremy Hylton <jeremy@alum.mit.edu>
Thu, 10 Feb 2000 17:20:39 +0000 (17:20 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Thu, 10 Feb 2000 17:20:39 +0000 (17:20 +0000)
commit3e0910c10c5cd49ec3a3932fc611127e83ccc428
tree310fd9090ce49c7676e847bd86629e493b5e7bfd
parent13a2c279c504ae58c20baba5f0b3d1d6c0a85ed3
add namespace attr to CodeGenerator, can be either MODULE_NAMESPACE or
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
Lib/compiler/pycodegen.py
Tools/compiler/compiler/pycodegen.py