For loop extended syntax

Greg Ewing greg at cosc.canterbury.ac.nz
Tue Mar 22 03:13:03 CET 2005


Jeff Shannon wrote:

> Function arguments are *not* (in general) a case of tuple unpacking, on 
> the other hand, so the parallels between function arguments and for loop 
> control-variable tuples are not so straightforward as is being claimed.

It seems to me the parallel is close enough that no
confusion would result.

Can you think of any situation in which surprising
behaviour would occur through someone thinking the
parallel was closer than it is?

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg



More information about the Python-list mailing list