Strange Errors with Python-2.2.2

darrell dgallion1 at yahoo.com
Sun Dec 22 12:29:50 EST 2002


Running Gentoo built in Nov with many updates since.
Not sure I want to upgrade to GCC 3.2.1 :)

Python 2.2.2 (#1, Nov  2 2002, 21:53:16)
[GCC 3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> int(1.1)
1

--Darrell


lemonite wrote:

> 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