On Thu, 20 May 2010 01:42:08 +0200, =?ISO-8859-1?Q?Giampaolo_Rodol=E0?= <g.rodola at gmail.com> wrote: > >>> class A: > ... def echo(self, x): > ... return x > ... > >>> a = A() > >>> a.echo() > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > TypeError: echo() takes exactly 2 arguments (1 given) > >>> > > I bet my last 2 cents this has already been raised in past but I want > to give it a try and revamp the subject anyway. > Is there a reason why the error shouldn't be adjusted to state that > *1* argument is actually required instead of 2? You can contribute to issue 2516 if you like :) http://bugs.python.org/issue2516 -- R. David Murray www.bitdance.com
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4