Skip to content

Commit daf6efa

Browse files
author
benjamin.peterson
committed
Merged revisions 85003 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85003 | benjamin.peterson | 2010-09-24 22:14:33 -0500 (Fri, 24 Sep 2010) | 1 line don't count keyword arguments as positional #9943 ........ git-svn-id: http://svn.python.org/projects/python/branches/release27-maint@85004 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 426722e commit daf6efa

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Core and Builtins
1515
- Issue #9797: pystate.c wrongly assumed that zero couldn't be a valid
1616
thread-local storage key.
1717

18+
- Issue #9943: Improve the TypeError raised for passing too many positional
19+
arguments.
20+
1821
- Issue #4947: The write() method of sys.stdout and sys.stderr uses their
1922
encoding and errors attributes instead of using utf-8 in strict mode, to get
2023
the same behaviour than the print statement.

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3059,7 +3059,7 @@ PyEval_EvalCodeEx(PyCodeObject *co, PyObject *globals, PyObject *locals,
30593059
defcount ? "at most" : "exactly",
30603060
co->co_argcount,
30613061
co->co_argcount == 1 ? "" : "s",
3062-
argcount + kwcount);
3062+
argcount);
30633063
goto fail;
30643064
}
30653065
n = co->co_argcount;

0 commit comments

Comments
 (0)