Sebastian Berg <sebast...@sipsolutions.net> added the comment:

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.

----------
nosy: +seberg

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

Reply via email to