diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-10-25 18:10:32 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-10-25 18:10:32 (GMT) |
commit | 7cff7fe21fa6bcf541abc57900c28bfb351576d7 (patch) | |
tree | 3bda6d096f4bc38d29820fbac955913e0cd2a88b /Misc | |
parent | 628d289d121488eb8035d35381ede5ec28561ff1 (diff) | |
download | cpython-7cff7fe21fa6bcf541abc57900c28bfb351576d7.zip cpython-7cff7fe21fa6bcf541abc57900c28bfb351576d7.tar.gz cpython-7cff7fe21fa6bcf541abc57900c28bfb351576d7.tar.bz2 |
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).
Diffstat (limited to 'Misc')
0 files changed, 0 insertions, 0 deletions