[Tutor] parsing an array

Aditya Lal aditya.n.lal at gmail.com
Tue Nov 13 14:48:04 CET 2007


On Nov 13, 2007 7:06 PM, bob gailer <bgailer at alum.rpi.edu> wrote:

> 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.
>
>
Yup! Bob is right. I just cut-paste the example from previous mail. It
should be for i in a :
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20071113/081a5bfa/attachment.htm 


More information about the Tutor mailing list