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

H. P. Friedrichs " HPeter.Friedrichs" at alliedsignal.com
Thu Jul 1 12:30:31 EDT 1999


Thanks!

Pete

Jeff Epler wrote:

> 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

--

-----------------------------------------------
| The opinions expressed here are my own,     |
| and not necessarily those of my employer.   |
-----------------------------------------------






More information about the Python-list mailing list