How to create an object instance from a string??
Patrick Useldinger
pu.news.001 at gmail.com
Sat Mar 19 17:24:33 EST 2005
Tian wrote:
> I have a string:
> classname = "Dog"
It's easier without strings:
>>> classname = Dog
>>> classname().bark()
Arf!!!
>>>
More information about the Python-list
mailing list