[issue28261] wrong error messages when using PyArg_ParseTuple to parse normal tuples
Oren Milman
report at bugs.python.org
Wed Aug 16 10:26:28 EDT 2017
Oren Milman added the comment:
I replied to your comments in Rietveld, Serhiy. (http://bugs.python.org/review/28261)
also, i found two places with a quite similar issue:
- in Objects/exceptions.c in ImportError_init:
>>> ImportError(1, 2, 3, 4, a=5, b=6, c=7)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: ImportError() takes at most 2 arguments (3 given)
- in Python/bltinmodule.c in min_max:
>>> min(1, 2, 3, 4, a=5, b=6, c=7)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: function takes at most 2 arguments (3 given)
may I fix them also as part of this issue?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28261>
_______________________________________
More information about the Python-bugs-list
mailing list