commit | 3e0910c10c5cd49ec3a3932fc611127e83ccc428 | [log] [tgz] |
---|---|---|
author | Jeremy Hylton <jeremy@alum.mit.edu> | Thu Feb 10 17:20:39 2000 +0000 |
committer | Jeremy Hylton <jeremy@alum.mit.edu> | Thu Feb 10 17:20:39 2000 +0000 |
tree | 310fd9090ce49c7676e847bd86629e493b5e7bfd | |
parent | 13a2c279c504ae58c20baba5f0b3d1d6c0a85ed3 [diff] |
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