For loop extended syntax

Kay Schluehr kay.schluehr at
Tue Mar 22 06:55:32 CET 2005

Terry Reedy wrote:

> Jeff covered the obvious objection that this is a change from
> sematics to function call semantics.
> Slightly less obvious is that this
> will slow down everyone's for loops for the benefit of the very few
> would want to do such a thing.

If the action of (x,y,z=0) on a tuple is regarded as a function call
why not letting resolve it by the compiler in an appropriate manner?
The tuple assignment is just a special case of this and can be resolved
in a different way. There would be no slowdown at all.

Regards Kay

More information about the Python-list mailing list