diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-03-30 23:55:31 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-03-30 23:55:31 (GMT) |
commit | 074c3e62d155349a69442f43e81a73883f222ea9 (patch) | |
tree | 50a773b1a903857944554bb06372decdf5addb3d /Lib/test/output/test_extcall | |
parent | aaf0ab26ed4fd02da874a9d2eee68b7c64e8377d (diff) | |
download | cpython-074c3e62d155349a69442f43e81a73883f222ea9.zip cpython-074c3e62d155349a69442f43e81a73883f222ea9.tar.gz cpython-074c3e62d155349a69442f43e81a73883f222ea9.tar.bz2 |
Two fixes for extended call syntax:
If a non-tuple sequence is passed as the *arg, convert it to a tuple
before checking its length.
If named keyword arguments are used in combination with **kwargs, make
a copy of kwargs before inserting the new keys.
Diffstat (limited to 'Lib/test/output/test_extcall')
-rw-r--r-- | Lib/test/output/test_extcall | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/output/test_extcall b/Lib/test/output/test_extcall index f4369b5..209ded7 100644 --- a/Lib/test/output/test_extcall +++ b/Lib/test/output/test_extcall @@ -16,6 +16,10 @@ TypeError: not enough arguments; expected 1, got 0 1 (2,) {} 1 (2, 3) {} 1 (2, 3, 4, 5) {} +0 (1, 2) {} +1 () {'d': 4, 'b': 2, 'c': 3, 'a': 1} +{'b': 2, 'c': 3, 'a': 1} +{'b': 2, 'c': 3, 'a': 1} keyword parameter redefined: x keyword parameter redefined: b keywords must be strings |