Message199705
| Author | christian.heimes |
|---|---|
| Recipients | christian.heimes, facundobatista, mark.dickinson, rhettinger, serhiy.storchaka, skrah, steven.daprano |
| Date | 2013-10-13.13:56:48 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1381672608.58.0.961486809843.issue18842@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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. |
|
| History | |||
|---|---|---|---|
| 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 | |