[issue1283289] PyArg_ParseTupleAndKeywords gives misleading error message

Daniel Diniz report at bugs.python.org
Fri Mar 20 23:31:07 CET 2009


Daniel Diniz <ajaksu at gmail.com> added the comment:

Fixed on trunk and py3k, can someone test on the release branches?

Python 2.7a0 (trunk, Feb 24 2009, 10:30:17)
>>> re.compile("a").match(pos=10)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: Required argument 'pattern' (pos 1) not found

----------
nosy: +ajaksu2
versions: +Python 2.6, Python 3.0

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


More information about the Python-bugs-list mailing list