Dynamically naming objects.

Kalibr space.captain.face at gmail.com
Fri Jun 6 22:59:05 EDT 2008


I've been developing a small script to fiddle with classes, and came
accross the following problem. Assuming I get some user input asking
for a number, how would I spawn 'n' objects from a class?

i.e. I have a class class 'user' and I don't know how many of them I
want to spawn.

Any ideas?



More information about the Python-list mailing list