On Feb 24, 7:50 pm, Steven D'Aprano <steve
+comp.lang.pyt...@pearwood.info> wrote:

> But it would also be rejected, and rightly so, as unnecessary complexity
> for the int type. There are already Decimal and float infinities, just
> use one of them.

Sure there are float INFINITIES that work fine for ints and floats,
but where is the consistency? INFINITY need not be a int or a float or
a str, or whatever. All it need be is a an object who always returns
itself as being larger in any comparison.

> Or make your own, it's not difficult.

INFINITY should be at the very least a constant of the math module.


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to