Terry Reedy wrote: > "Apple" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>Hi I am a bit new to python. I was wondering if there is a way to >>determine whether or not a given string is a member method of a given >>object: > > > Does callable(cls.attr) fit your needs? >
or perhaps callable(getattr(obj, strg, None)) if the need is related to an unknown string which may be a callable attribute of an object whose class is unknown ... -- http://mail.python.org/mailman/listinfo/python-list