]> granicus.if.org Git - python/commit
now produces valid pyc files for a least a trivial subset of the
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 8 Feb 2000 19:01:29 +0000 (19:01 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 8 Feb 2000 19:01:29 +0000 (19:01 +0000)
commit53187f32ebbb6156fa8e3ddf834dfde74cfa3208
treede9996353e090d4a20420bd89f7d78bbfaf4a465
parentaa9d2d6123a54dc1ed7f782fc935abcfadb54167
now produces valid pyc files for a least a trivial subset of the
language.

CodeGenerator:
* modify to track stack depth
* add emit method that call's PythonVMCode's makeCodeObject
* thread filenames through in hackish way
* set flags for code objects for modules and functions
  XXX the docs for the flags seem out of date and/or incomplete

PythonVMCode:
* add doc string describing the elements of a real code object

LineAddrTable:
* creates an lnotab (no quite correctly though)
Lib/compiler/pycodegen.py
Tools/compiler/compiler/pycodegen.py