]> granicus.if.org Git - python/commit
rapid evolution towards producing real .pyc files (even though I don't
authorJeremy Hylton <jeremy@alum.mit.edu>
Fri, 4 Feb 2000 19:37:35 +0000 (19:37 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Fri, 4 Feb 2000 19:37:35 +0000 (19:37 +0000)
commit0fdffcf9163c7d5dd18f74f7fad50d42fec60c3d
tree5e7f4aa2f89a510b3821f27ff828ae47abb0fc30
parent1fdae12c93246fcf4abbf882ba08df789070dfcc
rapid evolution towards producing real .pyc files (even though I don't
handle most of the language syntax yet)

create NestedCodeGenerator used to generator the separate code object
that needs to be passed as an argument to MAKE_FUNCTION when a def
stmt is found (probably useful for class too)

change CodeGenerator.visitFunction to use the NestedCG

add CompiledModule class to handle creation of .pyc (pretty minimal
for now)

add makeCodeObject method to PythonVMCode that replaces symbolic names
with indexes into slots of the code code.  the design of this
class will probably need to be revised.
Lib/compiler/pycodegen.py
Tools/compiler/compiler/pycodegen.py