[issue2516] Instance methods are misreporting the number of arguments
Giampaolo Rodola'
report at bugs.python.org
Fri Jun 25 21:42:51 CEST 2010
Giampaolo Rodola' <g.rodola at gmail.com> added the comment:
Maybe I'm misunderstanding what issue we're talking about here, but wasn't this supposed to be fixed?
giampaolo at ubuntu:~/svn/python-3.2$ python3.2
Python 3.2a0 (py3k:82220M, Jun 25 2010, 21:38:56)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> class A:
... def foo(self, x):
... pass
...
>>> A().foo()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: foo() takes exactly 2 arguments (1 given)
>>>
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2516>
_______________________________________
More information about the Python-bugs-list
mailing list