Strange Errors with Python-2.2.2

lemonite lemonite at t-online.de
Sat Dec 21 19:39:34 EST 2002


Hi newsgroup,

I have a problem with Python-2.2.2 on my Gentoo Linux 1.4rc system [1].
Expressions like the following cause errors or wrong results:


Python 2.2.2 (#1, Dec 21 2002, 17:39:23) [GCC 3.2.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> int(1.1)
0
>>> int(1.11)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
OverflowError: float too large to convert


With Python-2.1.3 everything is ok, as is with Python-2.2.2 on Windows
2000, but no matter how I install Python-2.2.2 from source the problems remain.

Does anyone have a clue what could cause these surprising results?

Thanks!

Kind regards,
lemonite

-----------------------------
[1] System specs:
Linux 2.4.19-gentoo-r9 #1 SMP i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
GenuineIntel GNU/Linux gcc-3.2.1 glibc-2.3.1




More information about the Python-list mailing list