This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author seberg
Recipients francois-durand, mark.dickinson, rhettinger, seberg, vstinner
Date 2020-01-09.14:02:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1578578566.46.0.282664832047.issue39274@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-01-09 14:02:46sebergsetrecipients: + seberg, rhettinger, mark.dickinson, vstinner, francois-durand
2020-01-09 14:02:46sebergsetmessageid: <1578578566.46.0.282664832047.issue39274@roundup.psfhosted.org>
2020-01-09 14:02:46seberglinkissue39274 messages
2020-01-09 14:02:46sebergcreate