[Tutor] List of Methods in a class / library

Rodrigues op73418 at mail.telepac.pt
Tue Sep 9 13:13:22 EDT 2003



> -----Original Message-----
> From: tutor-bounces+op73418=mail.telepac.pt at python.org
> [mailto:tutor-bounces+op73418=mail.telepac.pt at python.org]On
> Behalf Of
> Anand Shankar
>
> 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!!
>
> Anand Shankar
>

Use help at the interactive prompt?

>>> import socket
>>> help(socket)
Help on module socket:

NAME
    socket

FILE
    c:\python23\lib\socket.py

DESCRIPTION
    This module provides socket operations and some related functions.
    On Unix, it supports IP (Internet Protocol) and Unix domain
sockets.
    On other systems, it only supports IP. Functions specific for a
    socket are available as methods of the socket object.

[the list continues...]




More information about the Tutor mailing list