Converting Unicode to integer

Peter Hansen peter at engcorp.com
Tue Aug 27 13:56:06 CEST 2002


Nikola Plejic wrote:

> I tried using int() but that doesn't seem to work.

If you ever find yourself typing something like this, STOP,
back up, and type this instead:

   Here's my attempt using int():

   [insert your code here, cut and pasted so there are no typos]

   Note the exception that was raised:

   [insert full Python traceback here, cut and pasted]

   I don't understand what it's telling me, so can someone
   please explain?

That will generally solve your problem quickest. <wink>

-Peter



More information about the Python-list mailing list