[Tutor] parsing an array

bob gailer bgailer at alum.rpi.edu
Tue Nov 13 14:36:11 CET 2007


Aditya Lal wrote:
> [snip]

> for i in a[:] will make i point to the elements of the list
To be more precise:
a[:] is a copy of the list
the for statement assigns each list element in turn to i. Assign is not 
exactly the same as point.



More information about the Tutor mailing list