Determining method type given its string name presentation and itscorresponding object reference.

Terry Reedy tjreedy at
Mon Aug 1 04:02:10 CEST 2005

"Apple" <newtonapples at> wrote in message 
news:1122853524.374812.326580 at
> 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?

Terry J. Reedy

More information about the Python-list mailing list