[Python-Dev] Ordering keyword dicts
greg.ewing at canterbury.ac.nz
Mon May 20 03:35:49 CEST 2013
Joao S. O. Bueno wrote:
> Actually, when I was thinking on the subject I came to the same idea, of having
> some functions marked differently so they would use a different call mechanism -
> but them I wondered around having a different opcode for the ordered-dict calls.
> Would that be feasible?
No, because the callee is the only one that knows whether it
requires its keyword args to be ordered.
In fact, not even the callee might know at the time of the
call. Consider a function that takes **kwds and passes them
on to another function that requires ordered keywords.
More information about the Python-Dev