Message412510
>>> 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. |
|
Date |
User |
Action |
Args |
2022-02-04 15:54:15 | Anders.Hovmöller | set | recipients:
+ Anders.Hovmöller |
2022-02-04 15:54:15 | Anders.Hovmöller | set | messageid: <1643990055.45.0.970752611144.issue46637@roundup.psfhosted.org> |
2022-02-04 15:54:15 | Anders.Hovmöller | link | issue46637 messages |
2022-02-04 15:54:15 | Anders.Hovmöller | create | |
|