convert a string to a method call ?

Bruce Edge bedge at troikanetworks.com
Thu Nov 15 11:29:39 EST 2001


I have an object, say xObj, which has a bunch of methods.
I have the method I want to call in a string, say str.

How do I call method str on xObj?

Use eval? If so, the syntax eludes me.

TIA, Bruce.



More information about the Python-list mailing list