This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gsakkis
Recipients gsakkis
Date 2010-03-19.01:57:33
SpamBayes Score 0.0022891152
Marked as misclassified No
Message-id <1268963856.62.0.386330521193.issue8174@psf.upfronthosting.co.za>
In-reply-to
Content
The following exception message seems misleading, or at least not obvious:

>>> def f(a,b,c): pass
... 
>>> f(c=0,a=0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: f() takes exactly 3 non-keyword arguments (1 given)

Why "1 given" ? One could argue for either 0 or 2 given arguments but I fail to see how 1 is a reasonable answer.
History
Date User Action Args
2010-03-19 01:57:36gsakkissetrecipients: + gsakkis
2010-03-19 01:57:36gsakkissetmessageid: <1268963856.62.0.386330521193.issue8174@psf.upfronthosting.co.za>
2010-03-19 01:57:34gsakkislinkissue8174 messages
2010-03-19 01:57:34gsakkiscreate