Strange Errors with Python-2.2.2

jerf at compy.attbi.com jerf at compy.attbi.com
Sat Dec 21 20:00:22 EST 2002


On Sun, 22 Dec 2002 01:39:34 +0100, 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

I can't replicate this on my system, which is largely the same except it's
a Duron.

My guess would be overly-aggresive optimizations. That's always been the
problem for me when something wierd that nobody else sees occurs.



More information about the Python-list mailing list