Help: Can you explain this error? (contains code snip)

Jeff Epler jepler at inetnebr.com
Wed Jun 30 20:53:08 EDT 1999


On Wed, 30 Jun 1999 16:49:58 -0700, H. P. Friedrichs
 <@alliedsignal.com> wrote:
>Hello:
>
>This is week 2 for me in python...What fun!
>
>I have stumbled across an interesting problem. When the code below is
>run under Win95 (python 1.5.2),it works without problems. If the same
>code is run under Linux (python 1.4) I get the error:

Make things simpler:

>>> int("123")

this works in Python 1.5.x and fails in 1.4.  I believe this feature is
present in all 1.5.x and no standard 1.4 versions.

Use

>>> string.atoi("123")
to work on both versions.

Jeff




More information about the Python-list mailing list