migrate from java to python. How?

Ricardo Anguiano anguiano at codesourcery.com
Wed Oct 2 19:45:12 EDT 2002


"Daniel T." <a at b.c> writes:

> "2cents" <2cents at yahoo.com> wrote:
> 
> > I'm new to Python and I'm a Java programmer.
> > 
> > Can anyone recommend me a documentation/book to learn python for java
> > programmer.
> > I'm having some difficulties reading the python API (or I may have
> > downloaded a wrong API).
> > 
> > in Java, you can browse through packages and find classes, and then the
> > methods/variables.
> > But in python, there is only library reference
> > http://www.python.org/doc/current/lib/lib.html
> > Is there any complete API documentation as can be found in JAVA?
> 
> 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
     Python 2.1.1 (#1, Aug 13 2001, 19:37:40) 
     [GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-96)] on linux2
     Type "copyright", "credits" or "license" for more information.
     >>> import math
     >>> help(math)
     Traceback (most recent call last):
     File "<stdin>", line 1, in ?
     NameError: name 'help' is not defined
     >>> 

Thanks,
--
Ricardo Anguiano
CodeSourcery, LLC



More information about the Python-list mailing list