[Python-Dev] TypeError: f() missing 1 required positional argument: 'x'

Mark Dickinson dickinsm at gmail.com
Thu Sep 20 17:21:40 CEST 2012


On Thu, Sep 20, 2012 at 4:14 PM, Benjamin Peterson <benjamin at python.org> wrote:
> 2012/9/20 Mark Dickinson <dickinsm at gmail.com>:
>> And excepting optional ones, too, right?  E.g., the c in
>>
>>     def foo(a, b, c=1, *args, d):
>>         pass
>>
>> can be passed to by position, but isn't "positional".
>
> Why not?

Ah, okay;  I was assuming (wrongly) that your definition of
'positional' was intended to exclude these.  My bad.

Mark


More information about the Python-Dev mailing list