apply()?

Ron Griswold RGriswold at Rioting.com
Tue Dec 6 00:43:35 CET 2005


Hello,
 
I'm almost positive I've seen a function somewhere that will call a
method of an object given the method's name. Something like:
 
apply(obj, "func_name", args)
 
is equivalent to:
 
obj.func_name(args)
 
For some reason I thought this was the apply function, but that doesn't
appear to be the case. Can someone point me in the right direction?
 
Thanks,
 
Ron Griswold
Character TD
R!OT Pictures
rgriswold at rioting.com
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20051205/7f354f25/attachment.html>


More information about the Python-list mailing list