move extra arguments to the back of the new.code() arglist

This commit is contained in:
Jeremy Hylton 2001-02-01 19:50:29 +00:00
parent dabed752ed
commit 6fe0a82ecb
2 changed files with 28 additions and 8 deletions

View file

@ -66,7 +66,10 @@ verify(g['c'] == 3,
# bogus test of new.code()
print 'new.code()'
d = new.code(3, 3, 3, 3, codestr, (), (), (), (), (),
d = new.code(3, 3, 3, 3, codestr, (), (), (),
"<string>", "<name>", 1, "", (), ())
# test backwards-compatibility version with no freevars or cellvars
d = new.code(3, 3, 3, 3, codestr, (), (), (),
"<string>", "<name>", 1, "")
if verbose:
print d