[Python-checkins] r85003 - in python/branches/py3k: Misc/NEWS Python/ceval.c
benjamin.peterson
python-checkins at python.org
Sat Sep 25 05:14:34 CEST 2010
Author: benjamin.peterson
Date: Sat Sep 25 05:14:33 2010
New Revision: 85003
Log:
don't count keyword arguments as positional #9943
Modified:
python/branches/py3k/Misc/NEWS
python/branches/py3k/Python/ceval.c
Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS (original)
+++ python/branches/py3k/Misc/NEWS Sat Sep 25 05:14:33 2010
@@ -10,6 +10,9 @@
Core and Builtins
-----------------
+- Issue #9943: Improve the TypeError raised for passing too many positional
+ arguments.
+
- Issue #9930: Remove bogus subtype check that was causing (e.g.)
float.__rdiv__(2.0, 3) to return NotImplemented instead of the
expected 1.5.
Modified: python/branches/py3k/Python/ceval.c
==============================================================================
--- python/branches/py3k/Python/ceval.c (original)
+++ python/branches/py3k/Python/ceval.c Sat Sep 25 05:14:33 2010
@@ -3104,7 +3104,7 @@
defcount ? "at most" : "exactly",
co->co_argcount,
co->co_argcount == 1 ? "" : "s",
- argcount + kwcount);
+ argcount);
goto fail;
}
n = co->co_argcount;
More information about the Python-checkins
mailing list