Author Dennis Sweeney
Recipients Dennis Sweeney, chris.jerdonek, xtreak
Date 2020-05-20.07:35:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1589960148.38.0.966156212811.issue40679@roundup.psfhosted.org>
In-reply-to
Content
I got this:

>>> class A:
...  def f():
...   pass
...
>>> A.f(1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: A.f() takes 0 positional arguments but 1 was given
>>> A.f(**{1:2})
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: keywords must be strings

I think this is coming from https://github.com/python/cpython/blob/cd8295ff758891f21084a6a5ad3403d35dda38f7/Python/getargs.c#L1636.
History
Date User Action Args
2020-05-20 07:35:48Dennis Sweeneysetrecipients: + Dennis Sweeney, chris.jerdonek, xtreak
2020-05-20 07:35:48Dennis Sweeneysetmessageid: <1589960148.38.0.966156212811.issue40679@roundup.psfhosted.org>
2020-05-20 07:35:48Dennis Sweeneylinkissue40679 messages
2020-05-20 07:35:48Dennis Sweeneycreate