Python equivalent to perldoc?

Fernando Pérez fperez528 at yahoo.com
Tue Sep 17 19:07:40 CEST 2002


Bob X wrote:

> Skip Montanaro wrote:
>>     Bob> In Perl you can run "perldoc warnings" and get the definition of
>>     Bob> what "warnings" does. Is there a equivalent in Python?
>> 
>> Try "pydoc warnings".
>> 
> What a funny guy!  :-)

$ pydoc warnings
NAME
    warnings - Python part of the warnings subsystem.

FILE
    /usr/lib/python2.2/warnings.py

CLASSES
    exceptions.Exception
        _OptionError

    class _OptionError(exceptions.Exception)
     |  Exception used by option processing helpers.
     |
... snipped rest.

What's funny about it? Looks like exactly what you asked for.

Cheers,

f.



More information about the Python-list mailing list