<s>[INST] Finding what methods an object has Given a Python object of any kind, is there an easy way to get a list of all methods that this object has?
Or,
if this is not possible, is there at least an easy way to check if it has a particular method other than simply checking if an error occurs when the method is called?
 [/INST] It appears you can use this code, replacing 'object' with the object you're interested in:-
[method for method in dir(object) if callable(getattr(object, method))]

I discovered it at this site, hopefully that should provide some further detail!
 </s>