migrate from java to python. How?

Ricardo Anguiano anguiano at codesourcery.com
Thu Oct 3 16:09:15 EDT 2002


Gerhard Häring <gerhard.haering at gmx.de> writes:

> Ricardo Anguiano wrote in comp.lang.python:
> > "Daniel T." <a at b.c> writes:
> >> try this:
> >> 
> >> import math
> >> help( math )
> >> # read the output
> >> help( math.sqrt )
> >> # read help on math.sqrt()
> > 
> > That didn't seem to work for me.  Any ideas?
> > 
> > $ python2.1
> > [...]
> 
> You need Python >= 2.2. Alternatively, in Python 2.1.x do a:
> 
>     "from pydoc import help" first.
> 
> You can put this line in your sitecustomize.py to not have to do it
> in every interactive Python session.

Yep, that worked. Thanks.

-- 
Ricardo Anguiano
CodeSourcery, LLC



More information about the Python-list mailing list