Why is this?
Bryan Olson
fakeaddress at nowhere.org
Wed Aug 10 09:22:14 EDT 2005
Jiri Barton wrote:
> Yes, now it is clear!
>
> As always, I should have RTFM, the operator* is not just a syntactic
sugar
> and thus does not make copies.
That issue bites, like, everyone.
> You know, my actual scenario was with four
> variables at the time:
>
> a, b, c, d = [], [], [], []
Incidentally, to create a list of 37 distinct empty lists, you
can use:
[[] for _ in range(37)]
--
--Bryan
More information about the Python-list
mailing list