One-step multiples list generation?

Xavier Morel xavier.morel at
Tue Jan 3 13:40:52 EST 2006

Damien Wyart wrote:
> Thanks for these important and useful additions, they are very welcome !
> In writing my answer I had immutables in mind, but mutables are a bit
> more dangerous, here...

Not *that* much though.

The first construct can't be used, but he can use

 >>> [copy.copy(Foo) for _ in range(20)]

And he should be ok.

More information about the Python-list mailing list