Python equivalent to perldoc?

Bob X bobx at
Mon Sep 16 21:30:35 EDT 2002

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? Or at least put the "libs" in the 
ENV variable?


More information about the Python-list mailing list