exec function

Jeff Epler jepler at unpythonic.net
Sat Feb 12 17:17:28 EST 2005


In this case, you can use getattr() instead of the exec statement:
    getattr(self.frame, t).SetTable(DataTable(d, r[0]), True)

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050212/bd53c1ee/attachment.sig>


More information about the Python-list mailing list