Python equivalent to perldoc?

Thorsten Kampe thorsten at
Tue Sep 17 14:36:24 EDT 2002

* Bob X
> Bob X wrote:
>> In Perl you can run "perldoc warnings" and get the definition of what 
>> "warnings" does. Is there a equivalent in Python?
> Well...I found "pydoc". However I have to explicitly tell python to 
> execute it on Windows XP. I cannot type "pydoc sys" nor "python pydoc 
> sys" but I have to type "c:\python22\libs\pydoc sys" to get it to work.

> Shouldn't Python know its own libs?

It does:
| Python 2.2.1 (#34, Apr  9 2002, 19:34:33) [MSC 32 bit (Intel)] on win32
| Type "help", "copyright", "credits" or "license" for more information.
| >>> import pydoc
| >>>

> Or at least put the "libs" in the ENV variable?

Windows XP doesn't have a ENV variable.


More information about the Python-list mailing list