Newbie Question

Fredrik Lundh fredrik at pythonware.com
Wed Sep 22 06:37:32 EDT 1999


Chris... <sca at isogmbh.de> wrote:
> I've never heard of an 'atoi' function, but there exists 'int()' that
> converts its argument (string or number) to a plain integer.

atoi is in the string module, together with atof and atol:

http://www.python.org/doc/current/lib/module-string.html

(they're similar to their builtin counterparts, but atoi
and atol can also be used with non-decimal numbers)

</F>





More information about the Python-list mailing list