]> granicus.if.org Git - python/commitdiff
Rolled back revisions 85003 via svnmerge from
authorBenjamin Peterson <benjamin@python.org>
Sat, 25 Sep 2010 03:27:12 +0000 (03:27 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 25 Sep 2010 03:27:12 +0000 (03:27 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

Misc/NEWS
Python/ceval.c

index e42bb16d57560784fdec9522592ca4de86755ee7..77adf82beba1573f587b21cab5110b092423fa7f 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -15,9 +15,6 @@ Core and Builtins
 - Issue #9797: pystate.c wrongly assumed that zero couldn't be a valid
   thread-local storage key.
 
-- Issue #9943: Improve the TypeError raised for passing too many positional
-  arguments.
-
 - Issue #4947: The write() method of sys.stdout and sys.stderr uses their
   encoding and errors attributes instead of using utf-8 in strict mode, to get
   the same behaviour than the print statement.
index 921cb48699b11d1d97892dd83af02bc4d5729dea..673eac2ed42ffbfc245187f2707f27a7a26bed3e 100644 (file)
@@ -3059,7 +3059,7 @@ PyEval_EvalCodeEx(PyCodeObject *co, PyObject *globals, PyObject *locals,
                     defcount ? "at most" : "exactly",
                     co->co_argcount,
                     co->co_argcount == 1 ? "" : "s",
-                    argcount);
+                    argcount + kwcount);
                 goto fail;
             }
             n = co->co_argcount;