Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aa7fbd9

Browse files
committed
revert r85003, poorly considered; breaks tests
1 parent 81437c9 commit aa7fbd9

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

Misc/NEWS

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ What's New in Python 3.2 Alpha 3?
1010
Core and Builtins
1111
-----------------
1212

13-
- Issue #9943: Improve the TypeError raised for passing too many positional
14-
arguments.
15-
1613
- Issue #9930: Remove bogus subtype check that was causing (e.g.)
1714
float.__rdiv__(2.0, 3) to return NotImplemented instead of the
1815
expected 1.5.

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3104,7 +3104,7 @@ PyEval_EvalCodeEx(PyCodeObject *co, PyObject *globals, PyObject *locals,
31043104
defcount ? "at most" : "exactly",
31053105
co->co_argcount,
31063106
co->co_argcount == 1 ? "" : "s",
3107-
argcount);
3107+
argcount + kwcount);
31083108
goto fail;
31093109
}
31103110
n = co->co_argcount;

0 commit comments

Comments
 (0)