Infinity
Tim Peters
tim.one at home.com
Wed May 9 21:11:17 EDT 2001
[Mick]
> Is there an Infinity object in Python 2.1?
Python is completely ignorant of IEEE-754 gimmicks, and any behaviors you see
wrt them are platform-dependent and release-dependent accidents.
> I used to produce one in 1.5.2 using Inf = math.exp(10000), but
> now I just get an overflow error.
Both accidents. I can usually get away with
inf = 1e300**2
That keeps the platform libm out of it (albeit admittedly due to yet another
implementation accident <wink>).
More information about the Python-list
mailing list