[$] Python and the infinite

Post Syndicated from coogle original https://lwn.net/Articles/833624/rss

A recent proposal on the python-ideas mailing list would add a new way to
represent floating-point infinity in the language. Cade Brown
suggested
the change; he cited a few different reasons for it, including
fixing an inconsistency in the way the string representation of infinity is
handled in the language. The discussion that followed branched in a few
directions, including adding a constant for “not a number” (NaN) and a more
general discussion of the inconsistent way that Python handles expressions
that evaluate to infinity.