On Nov 13, 2007 7:06 PM, bob gailer <[EMAIL PROTECTED]> 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 :
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to