]> granicus.if.org Git - python/commit
Fix bug reported by Ka-Ping Yee: The compiler botched parsing function
authorJeremy Hylton <jeremy@alum.mit.edu>
Thu, 25 Jan 2001 17:01:49 +0000 (17:01 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Thu, 25 Jan 2001 17:01:49 +0000 (17:01 +0000)
commita6ebc4841db8324d89266436f4b4ac28a1f2141d
tree123f68e94def46310774cef093451a8912cad1ae
parent41eb3c7dc5064e8e2c66d3066f6cffb1ae4252b5
Fix bug reported by Ka-Ping Yee: The compiler botched parsing function
parameters that contained both anonymous tuples and *arg or **arg. Ex:
def f(a, (b, c), *d): pass

Fix the symtable_params() to generate names in the right order for
co_varnames slot of code object.  Consider *arg and **arg before the
"complex" names introduced by anonymous tuples.
Python/compile.c