mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
move extra arguments to the back of the new.code() arglist
This commit is contained in:
parent
dabed752ed
commit
6fe0a82ecb
2 changed files with 28 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue