Python equivalent to perldoc?

Bob bobx at linuxmail.org
Wed Sep 18 13:52:00 EDT 2002


Fernando Pérez <fperez528 at yahoo.com> wrote in message news:<am7ngs$rk9$1 at peabody.colorado.edu>...
> 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.
Actually it works on *nix as was the above...but not on Windows XP as was mentioned.

Cherrios,

Bob



More information about the Python-list mailing list