Why is this?
paolo_veronelli at tiscali.it
Wed Aug 10 08:17:34 EDT 2005
Jiri Barton wrote:
> Hi everyone,
> I have a problem with initialization.
>>>>a, b = []*2
> Why is this? Why does not this behave like the below:
>>> a, b = []*2
> And, just to add to my confusion:
> [, ]
>>>>[, ] == []*2
This confuses me also,looks like empty lists share same object.
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
More information about the Python-list