[Tutor] How to use pydoc

David Hutto dwightdhutto at yahoo.com
Fri Feb 26 16:51:30 CET 2010


--- On Fri, 2/26/10, Ricardo Aráoz <ricaraoz at gmail.com> wrote:

From: Ricardo Aráoz <ricaraoz at gmail.com>
Subject: [Tutor] How to use pydoc
To: tutor at python.org
Date: Friday, February 26, 2010, 8:31 AM

Checked the manuals on pydoc and wanted to try it. Must certainly be
doing something wrong but I can't figure what. Here's my session :

Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
(Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> pydoc sys
  File "<stdin>", line 1
    pydoc sys
            ^
SyntaxError: invalid syntax
>>> import pydoc
>>> pydoc sys
  File "<stdin>", line 1
    pydoc sys
            ^
SyntaxError: invalid syntax
>>> pydoc
<module 'pydoc' from 'C:\Python25\lib\pydoc.pyc'>
>>> import sys
>>> pydoc sys
  File "<stdin>", line 1
    pydoc sys
            ^
SyntaxError: invalid syntax
>>>

What's my mistake?

TIA


_______________________________________________
Tutor maillist  -  Tutor at python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor


It looks like you're using idle, you place the command in the command prompt/terminal like:

python -m pydoc sys

Look here about three down it's in the page summary:

http://www.google.com/search?hl=en&client=firefox-a&rls=com.ubuntu%3Aen-US%3Aofficial&q=pydoc+sys&aq=f&aqi=g1g-s1g-sx1&aql=&oq=



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100226/ec9a804c/attachment.html>


More information about the Tutor mailing list