News for hackers. Stuff that matters.
Re:Widely useful Python utilities by Peter Norvig by nearestneighbor on Monday September 14, 2009 @10:57PM (#823180)
the largest representable float in Python is around 10^300 something or so. Anything bigger is considered infinite. Peter Norvig wanted a name for the float bit pattern that represents infinity.
Re:Widely useful Python utilities by Peter Norvig by mattj on Tuesday September 15, 2009 @02:47AM (#823418)
float("inf")?
Re:Widely useful Python utilities by Peter Norvig by beza1e1 on Tuesday September 15, 2009 @05:52AM (#823553)

    >>> 1.0e400 == float("inf")
    True
I don't know, if there is a difference. Maybe the interpreter can evaluate 1.0e400 a little faster?