Typecasting

Aahz aahz at pythoncraft.com
Tue Feb 24 10:50:56 EST 2004


In article <15c2d03b.0402240646.558226ef at posting.google.com>,
Marco Aschwanden <PPNTWIMBXFFC at spammotel.com> wrote:
>
>Don't forget the string-library with its atof-, atoi-, atol-method:
>
>>>> import string
>>>> string.atoi('555')
>555

That's deprecated.  Use the type objects to convert.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Do not taunt happy fun for loops. Do not change lists you are looping over."
--Remco Gerlich, comp.lang.python



More information about the Python-list mailing list