Sagari a écrit :
Greetings,Can someone suggest an efficient way of calling method whose name is passed in a variable?
method = getattr(obj, 'method_name', None)
if callable(method):
method(args)
--
http://mail.python.org/mailman/listinfo/python-list
