Skip to content

Commit c9258ea

Browse files
author
benjamin.peterson
committed
Rolled back revisions 85003 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k git-svn-id: http://svn.python.org/projects/python/branches/release27-maint@85006 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent daf6efa commit c9258ea

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
@@ -15,9 +15,6 @@ 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-
2118
- Issue #4947: The write() method of sys.stdout and sys.stderr uses their
2219
encoding and errors attributes instead of using utf-8 in strict mode, to get
2320
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);
3062+
argcount + kwcount);
30633063
goto fail;
30643064
}
30653065
n = co->co_argcount;

0 commit comments

Comments
 (0)