Message359681
Thanks for the quick responses. @Victor Stinner, I suppose you could change `numbers.Complex.__bool__()` by adding the no-op bool to make it: `bool(self != 0)`. But I am not sure I feel it is necessary. NumPy is a bit a strange in that it uses its own boolean scalar, and it is easy to override the slot for such objects. | |
| Date | User | Action | Args | | 2020-01-09 14:02:46 | seberg | set | recipients: + seberg, rhettinger, mark.dickinson, vstinner, francois-durand | | 2020-01-09 14:02:46 | seberg | set | messageid: <1578578566.46.0.282664832047.issue39274@roundup.psfhosted.org> | | 2020-01-09 14:02:46 | seberg | link | issue39274 messages | | 2020-01-09 14:02:46 | seberg | create | | |