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 pablogsal
Recipients pablogsal
Date 2021-01-20.15:40:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1611157227.52.0.513625976683.issue42978@roundup.psfhosted.org>
In-reply-to
Content
We currently say:

Traceback (most recent call last):
  File "/Users/pgalindo3/github/python/master/lel.py", line 5, in <module>
    A().foo(1,2)
TypeError: foo() takes 2 positional arguments but 3 were given

but we should say:
Traceback (most recent call last):
  File "/Users/pgalindo3/github/python/master/lel.py", line 5, in <module>
    A().foo(1,2)
TypeError: A.foo() takes 2 positional arguments but 3 were given. Did you forget 'self' in the method definition?
History
Date User Action Args
2021-01-20 15:40:27pablogsalsetrecipients: + pablogsal
2021-01-20 15:40:27pablogsalsetmessageid: <1611157227.52.0.513625976683.issue42978@roundup.psfhosted.org>
2021-01-20 15:40:27pablogsallinkissue42978 messages
2021-01-20 15:40:27pablogsalcreate