Simple list.append() question

Tim Hochberg tim.hochberg at ieee.org
Tue Apr 25 16:01:59 CEST 2000


For those who _need_ a one-liner, the following works:

map(list, [()]*3)

as does

map(list, [[]]*3)

and

map(copy.copy, [[]]*3)


-tim






More information about the Python-list mailing list