Bug or Feature?

Stephan Houben stephan at pcrm.win.tue.nl
Fri Apr 23 10:25:48 EDT 1999


Fuming Wang <fmwang at mediaone.net> writes:

> Is this a bug or a feature that I don't know about?

It is a feature. If you do something like [[]]*10, then
you should realize that this gives you a list containing ten
times the *same* list. So mutation to one changes them all.

Greetings,

Stephan




More information about the Python-list mailing list