[issue28261] wrong error messages when using PyArg_ParseTuple to parse normal tuples

Oren Milman report at bugs.python.org
Thu Aug 17 03:59:55 EDT 2017


Oren Milman added the comment:

After more looking, I found this issue in two more places:
- in Modules/itertoolsmodule.c in product_new:
    >>> itertools.product(0, a=1, b=2, c=3, d=4, e=5, f=6)
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    TypeError: product() takes at most 1 argument (6 given)
- in Python/bltinmodule.c in builtin_print: 
    >>> print(0, a=1, b=2, c=3, d=4, e=5, f=6)
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    TypeError: print() takes at most 4 arguments (6 given)

what do you think?
should I open another issue for these and the other two I
mentioned in msg300366?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28261>
_______________________________________


More information about the Python-bugs-list mailing list