gc wrote:

Alternatively, is there a version of iterable multiplication that
creates new objects rather than just copying the reference?

You can use a list comprehension:

  a, b, c, d, e = [dict() for i in xrange(5)]

or a generator expression:

  a, b, c, d, e = (dict() for i in xrange(5))

--
Greg
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to