Christian Heimes added the comment:

Pardon?

The methods could be added to complex, too. cmath implements the methods as:

is_finite:
    Py_IS_FINITE(z.real) && Py_IS_FINITE(z.imag)
is_infinite:
    Py_IS_INFINITY(z.real) || Py_IS_INFINITY(z.imag)
is_nan:
    Py_IS_NAN(z.real) || Py_IS_NAN(z.imag)

For numbers.Real: We can't make the methods abstractmethods because it would be 
an incompatible change.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18842>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to