--- On Fri, 2/26/10, Ricardo Aráoz <[email protected]> wrote:
From: Ricardo Aráoz <[email protected]> Subject: [Tutor] How to use pydoc To: [email protected] 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 - [email protected] 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=
_______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
