STINNER Victor <vstin...@python.org> added the comment:

> ``return bool(a._numerator)`` does seem like the obvious way to do this.

Yes, it's a good fix. It's used on other places.

--

numbers.Complex.__bool__() also uses "self != 0". Is it an issue?

----------
nosy: +vstinner

_______________________________________
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