On Friday, March 1, 2013 8:33:02 AM UTC-8, Panupat Chongstitwattana wrote:
> for a in arrays:
> and
> for a in arrays[:]:
> seem to do exactly the same thing. Is there any difference made by the [:] ?

Use array[:] when you want a copy of the list. It has the same result as doing 
list(array).

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to