[Tutor] creating an object instance w/out hard-coding the name

dlphone@bellsouth.net dlphone@bellsouth.net
Thu, 17 Oct 2002 16:08:04 -0400


Hello all:

I would like to create a new object instance from user input, or using an iterated variable, for a small OODB. Can this be done? Assuming that 'Project' is my class, then Creating an instance as follows won't work, because the new instance will literally be named 'projName'. 

projName = raw_input("Name your project")
projName = Project()

Regards,
Dave