]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Many changes.
authorJeremy Hylton <jeremy@alum.mit.edu>
Wed, 25 Oct 2000 18:10:32 +0000 (18:10 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Wed, 25 Oct 2000 18:10:32 +0000 (18:10 +0000)
commit7cff7fe21fa6bcf541abc57900c28bfb351576d7
tree3bda6d096f4bc38d29820fbac955913e0cd2a88b
parent628d289d121488eb8035d35381ede5ec28561ff1
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).
Lib/compiler/transformer.py
Tools/compiler/compiler/transformer.py