Re: Dynamically created objects

2007-12-27 Thread Steven D'Aprano
On Fri, 28 Dec 2007 08:14:43 +0100, Michael Bernhard Arp Sørensen wrote: > Hi there. > > I need to create objects on the fly in my program. The names of the > objects must be unique, obviously, and I need to put them in a list for > later use. Why do you think they need names? If you have them i

Re: Dynamically created objects

2007-12-27 Thread Gabriel Genellina
En Fri, 28 Dec 2007 04:14:43 -0300, Michael Bernhard Arp Sørensen <[EMAIL PROTECTED]> escribió: > I need to create objects on the fly in my program. The names of the > objects must be unique, obviously, and I need to put them in a list for > later use. > > How do i set the name of an object if t

Dynamically created objects

2007-12-27 Thread Michael Bernhard Arp Sørensen
Hi there. I need to create objects on the fly in my program. The names of the objects must be unique, obviously, and I need to put them in a list for later use. How do i set the name of an object if the name is stored in another variable? I've looked in the O'Reiley Python Cookbook and on goo