cpython/Lib/compiler
Jeremy Hylton 7cff7fe21f Many changes.
Reformatting -- long lines, "[ ]" -> "[]", a few indentation nits.

Replace calls to Node function (which constructed ast nodes) with
calls to actual constructors imported from ast module.

Optimize com_node (most frequently used method) for the common case --
the appropriate method is found in _dispatch.

Fix com_augassign to use class object's rather than node names
(rendered invalid by recent changes to ast)

Remove expensive tests for sequence-ness in com_stmt and
com_append_stmt. These tests should never fail; if they do, something
is really broken and exception will be raised elsewhere.

Fix com_stmt and com_append_stmt to use isinstance rather than
testing's type slot of ast node (this slot disappeared with recent
changes to ast).
2000-10-25 18:10:32 +00:00
..
__init__.py import compile function form pycodegen 2000-03-06 19:12:33 +00:00
ast.py Generated from rev 1.1 of ast.txt 2000-10-25 18:02:59 +00:00
consts.py constants from transformer 2000-02-08 18:57:51 +00:00
misc.py change name of Set method: items -> elements (avoids confusion with 2000-03-16 20:02:38 +00:00
pyassem.py Now supports entire Python 2.0 language and still supports Python 2000-10-13 21:58:13 +00:00
pycodegen.py Now supports entire Python 2.0 language and still supports Python 2000-10-13 21:58:13 +00:00
transformer.py Many changes. 2000-10-25 18:10:32 +00:00
visitor.py Small optimizations in dispatch method: 1) lookup node's __class__ once 2000-10-25 18:02:02 +00:00