[issue24234] Should we define complex.__complex__ and bytes.__bytes__?

Ethan Smith report at bugs.python.org
Wed Jun 9 17:09:21 EDT 2021


Ethan Smith <ethan at ethanhs.me> added the comment:

While I don't think it is nonsense, I do think it would be quite useful to add these. I just submitted PRs to typeshed and numpy adding complex to unions that already had SupportsComplex, because of the lack of __complex__. I'd be happy to work on a PR for this if it would be accepted.

----------
nosy: +ethan smith

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue24234>
_______________________________________


More information about the Python-bugs-list mailing list