xotl.tools.infinity
- An infinite value¶
-
xotl.tools.infinity.
Infinity
¶ The positive infinite value. The negative infinite value is
-Infinity
.These values are only sensible for comparison. Arithmetic is not supported.
The type of values that is comparable with
Infinity
is controlled by the ABCInfinityComparable
.
-
class
xotl.tools.infinity.
InfinityComparable
[source]¶ Any type that can be sensibly compared to infinity.
All types in the
number
tower are always comparable.Classes
datetime.date
,datetime.datetime
, anddatetime.timedelta
are automatically registered.