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 belopolsky
Recipients belopolsky, nedbat, rhettinger
Date 2008-03-31.00:37:24
SpamBayes Score 0.026699759
Marked as misclassified No
Message-id <1206923848.74.0.656358464271.issue2516@psf.upfronthosting.co.za>
In-reply-to
Content
Attached patch (issue2516poc.diff) presents proof-of-concept code which 
changes the problematic reporting as follows:

>>> a.f(1,2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: <A object>.f() takes exactly 0 arguments (2 given)

More effort is needed to make this patch ready: support default/keyword 
arguments, respect English grammar in 1-argument case, etc.  Before I do 
that, however, I would like to hear that this is a worthwhile fix and 
that I've chosen the right place in the code to implement it.
History
Date User Action Args
2008-03-31 00:37:29belopolskysetspambayes_score: 0.0266998 -> 0.026699759
recipients: + belopolsky, rhettinger, nedbat
2008-03-31 00:37:28belopolskysetspambayes_score: 0.0266998 -> 0.0266998
messageid: <1206923848.74.0.656358464271.issue2516@psf.upfronthosting.co.za>
2008-03-31 00:37:27belopolskylinkissue2516 messages
2008-03-31 00:37:26belopolskycreate