[Tutor] pydoc?

bob gailer bgailer at gmail.com
Fri Jun 18 20:29:11 CEST 2010


On 6/18/2010 1:53 PM, Andrew Martin wrote:
> Hey, everyone, I am new to programming and just downloaded Python 2.6 
> onto my windows vista laptop. I am attempting to follow 4.11 of the 
> tutorial called "How to Think Like a Computer Scientist: Learning with 
> Python v2nd Edition documentation" 
> (http://openbookproject.net/thinkcs/python/english2e/ch04.html). 
> However, I am having some trouble. I am trying to use pydoc to search 
> through the python libraries installed on my computer but keep getting 
> an error involving the $ symbol.
>
> $ pydoc -g
> SyntaxError: invalid syntax

I make a guess - that you are typing $ pydoc -g at the Python 
Interpreter prompt (>>>)

The manual recommends typing it a the shell prompt. In which case the $ 
represents the prompt and you should just type pydoc -g.


-- 
Bob Gailer
919-636-4239
Chapel Hill NC



More information about the Tutor mailing list