Message199705
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. |
|
| Date |
User |
Action |
Args |
| 2013-10-13 13:56:48 | christian.heimes | set | recipients:
+ christian.heimes, rhettinger, facundobatista, mark.dickinson, steven.daprano, skrah, serhiy.storchaka |
| 2013-10-13 13:56:48 | christian.heimes | set | messageid: <1381672608.58.0.961486809843.issue18842@psf.upfronthosting.co.za> |
| 2013-10-13 13:56:48 | christian.heimes | link | issue18842 messages |
| 2013-10-13 13:56:48 | christian.heimes | create | |
|