[Tutor] List of Methods in a class / library
Erik Price
erikprice at mac.com
Tue Sep 9 09:16:51 EDT 2003
On Tuesday, September 9, 2003, at 03:20 AM, Anand Shankar wrote:
> How can I get a listing of all methods in a class or
> module, and better still the arguments required?
>
> No I do'nt mean the default: Look up documentation!!
Try the dir() built-in function to get a List of strings containing the
members of an object (including a module or class). You could probably
get creative and create a new function that calls dir() on its
argument, but also fetches more detailed information on each member and
returns it (such as docstring).
Erik
More information about the Tutor
mailing list