Andrew M. Kuchling | 564165e | 2001-08-08 19:10:11 +0000 | [diff] [blame] | 1 | This directory contains modules for a a Python source to bytecode compiler |
| 2 | written in pure Python. To install the compiler modules so they're |
| 3 | available for use by third-party Python software, run 'python setup.py |
| 4 | install'. |
| 5 | |
| 6 | compile.py Demo that compiles a Python module into a .pyc file |
| 7 | using the pure-Python compiler code. |
| 8 | |
| 9 | demo.py Prints the names of all the methods defined in a module, |
| 10 | as a demonstration of walking through the abstract syntax |
| 11 | tree produced by the parser. |
| 12 | |
| 13 | dumppyc.py Dumps the contents of a .pyc file, printing |
| 14 | the attributes of the code object followed by a |
| 15 | code disassembly. |
| 16 | |
| 17 | regrtest.py Runs the Python test suite using bytecode generated |
| 18 | by the pure-Python compiler code instead of the |
| 19 | builtin compiler. |
| 20 | |
| 21 | setup.py Setup file for installing the compiler code as a package. |