is there a nmore pythonic way ?

Jeff Epler jepler at unpythonic.net
Tue Mar 11 10:23:41 EST 2003


You could use __import__ and getattr() instead of exec().

I don't know if one is any better than the other.





More information about the Python-list mailing list