problem moving from char to integer

Pontus Ekberg herrekberg at users.sf.net
Tue Sep 26 19:19:25 EDT 2006


Melih Onvural wrote:

> 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

In what way does it not work? Please post the entire code or at least the
result of your code.





More information about the Python-list mailing list