Dynamically created objects

Michael Bernhard Arp Sørensen murderbystealth at gmail.com
Fri Dec 28 02:14:43 EST 2007


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 google, but no joy.

Thanks in advance.

/Tram



More information about the Python-list mailing list