]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix calculation of hardest_arg.
authorJeremy Hylton <jeremy@alum.mit.edu>
Mon, 17 Sep 2001 20:16:30 +0000 (20:16 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Mon, 17 Sep 2001 20:16:30 +0000 (20:16 +0000)
commiteab4328f1a4de03e527c746086f73c8a4d6f6b08
tree87891e1209cae9dc9f1616db4cfe871bf98f5165
parent2e4cc7e0d84747826d3d2546d1bccd9c40a455c2
Fix calculation of hardest_arg.

The argument properties are ordered from easiest to hardest.  The
harder the arg, the more complicated that code that must be generated
to return it from getChildren() and/or getChildNodes().  The old
calculation routine was bogus, because it always set hardest_arg to
the hardness of the last argument.  Now use max() to always set it to
the hardness of the hardest argument.
Tools/compiler/astgen.py
Tools/compiler/compiler/astgen.py