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 Anders.Hovmöller
Recipients Anders.Hovmöller
Date 2022-02-04.15:54:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643990055.45.0.970752611144.issue46637@roundup.psfhosted.org>
In-reply-to
Content
>>> def foo(a):
...     pass
... 
>>> foo()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: foo() missing 1 required positional argument: 'a'

This error is incorrect. It says "positional argument", but it's just "argument". The proof is that if you call it with

foo(a=3)

it works fine.
History
Date User Action Args
2022-02-04 15:54:15Anders.Hovmöllersetrecipients: + Anders.Hovmöller
2022-02-04 15:54:15Anders.Hovmöllersetmessageid: <1643990055.45.0.970752611144.issue46637@roundup.psfhosted.org>
2022-02-04 15:54:15Anders.Hovmöllerlinkissue46637 messages
2022-02-04 15:54:15Anders.Hovmöllercreate