Error with int()

Joerg Woelke lumbricus at gmx.net
Sat Sep 29 14:35:54 CEST 2001


"Arturo Pérez Mulas" <arturo_perez at wanadoo.es> wrote:
> Hello,

> I am running python 2.1.1 under Windows XP BETA, and get the following
> error:

>>>> int('a')
> Traceback (most recent call last):
>   File "<interactive input>", line 1, in ?
> ValueError: invalid literal for int(): a

try
ord('a')

> Help anyone? Thank you

HTH,HAND
J"o! :-)

-- 
For 20 dollars, I'll give you a good fortune next time ...



More information about the Python-list mailing list