TP <t...@frenoespam.fr.invalid> writes:
> copies a list, he copies in fact the *pointer* to the list ....
> Is it the correct explanation?

Yes, that is correct.

> In these conditions, how to make this list [[0,0,0],[0,0,0]] with "*" 
> without this behavior?

    >>> a = [[0]*3 for i in xrange(2)]
    >>> a[0][0]=2
    >>> a
    [[2, 0, 0], [0, 0, 0]]
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to