problem moving from char to integer

Melih Onvural melih.onvural at gmail.com
Tue Sep 26 19:15:23 EDT 2006


Group,

I'm trying to get a very basic cast from a string to an integer
working. Here is what I'm doing:

for i in url:
     result[counter] = int(i)
     counter += 1;

return result;

anything that I'm doing drastically wrong? Mac OS 10.4, MacPython
upgraded to 2.4. Thanks for any help,

Melih




More information about the Python-list mailing list