diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-09-17 21:02:51 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-09-17 21:02:51 (GMT) |
commit | 9dca36432e4526da9c5885e86782e7dfa5432c42 (patch) | |
tree | a30bc1744590e05b731eb077d1d261b544270ccf /Demo/xml/elem_count.py | |
parent | c8ed18a4e3756f0cccbcddd10323ef536ad003ec (diff) | |
download | cpython-9dca36432e4526da9c5885e86782e7dfa5432c42.zip cpython-9dca36432e4526da9c5885e86782e7dfa5432c42.tar.gz cpython-9dca36432e4526da9c5885e86782e7dfa5432c42.tar.bz2 |
API change:
compile() becomes replacement for builtin compile()
compileFile() generates a .pyc from a .py
both are exported in __init__
compiler.parse() gets optional second argument to specify compilation
mode, e.g. single, eval, exec
Add AbstractCompileMode as parent class and Module, Expression, and
Interactive as concrete subclasses. Each corresponds to a compilation
mode.
THe AbstractCompileMode instances in turn delegate to CodeGeneration
subclasses specialized for their particular functions --
ModuleCodeGenerator, ExpressionCodeGeneration,
InteractiveCodeGenerator.
Diffstat (limited to 'Demo/xml/elem_count.py')
0 files changed, 0 insertions, 0 deletions