You\'d have already found out by my usage of terminology that I\'m a python n00b.
straight forward question:
How can i see a list of methods for a particular obj
Others have mentioned dir. Let me make an remark of caution: Python objects may have a __getattr__ method defined which is called when one attempts to call an undefined method on said object. Obviously dir
does not list all those (infinitely many) method names. Some libraries make explicit use of this feature, e.g. PLY (Python Lex-Yacc).
Example:
>>> class Test:
... def __getattr__(self, name):
... return 'foo <%s>' % name
...
>>> t = Test()
>>> t.bar
'foo '
>>> 'bar' in dir(t)
False