selecting a class in execution time

cybersamurai at mac.com cybersamurai at mac.com
Mon Apr 7 13:09:24 EDT 2003


have some way to do this on Python?

Object x = Class.forName( "mypackage.TheClass" ).newInstace();
(this is a java code)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 224 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20030407/d55836f6/attachment.bin>


More information about the Python-list mailing list