[Tutor] Ask a class for it's methods

Kent Johnson kent37 at tds.net
Mon Dec 15 16:22:10 CET 2008


On Fri, Dec 12, 2008 at 6:06 PM, Shrutarshi Basu
<technorapture at gmail.com> wrote:
> Is there a way to ask an object for a list of it's
> methods (with argument requirements if possible)?

Take a look at the inspect module. If it does not directly give you
what you need, look at the source - it looks at function attributes
that you can directly access.

Kent


More information about the Tutor mailing list