Message243203
Le 14/05/2015 17:49, Yury Selivanov a écrit :
>
>> What do you mean? In Signature or in BoundArguments? I would hope
>> that
> Signature keeps it.
>
> I mean during the actual call, as **kwargs aren't ordered.
>
> I think having indexes for parameters would make sense for a language
> like JS or C, where there are no keyword arguments, and indexes of
> parameters match indexes of arguments.
As mentioned in the issue, when re-implementing function calls, you have
to flatten the arguments into a simple argument list (because the
function parameters are actually a sequence (*), despite Python's rich
function call possibilities).
(*) at least for pure Python functions, where the arguments are simply
pushed sequentially on the ceval stack |
|
Date |
User |
Action |
Args |
2015-05-14 15:58:32 | pitrou | set | recipients:
+ pitrou, brett.cannon, larry, yselivanov |
2015-05-14 15:58:32 | pitrou | link | issue24189 messages |
2015-05-14 15:58:32 | pitrou | create | |
|