Q: Duplicating Objects ... HOW ???

Alex new_name at mit.edu
Sun Jul 8 19:19:42 CEST 2001

You may be happier in the long run keeping the sequence of test objects
in a sequence, like a list.  You could do something like this:

import copy
test_list = [copy.copy(obj) for obj in 20*[test]]


More information about the Python-list mailing list