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 Hameer Abbasi
Recipients Hameer Abbasi
Date 2020-03-30.15:31:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1585582276.55.0.632143445993.issue40117@roundup.psfhosted.org>
In-reply-to
Content
Minimal reproducer:

>>> class A:
...     def __round__(self):
...         return NotImplemented
...
>>> round(A())
NotImplemented

Should give a TypeError.

This can be useful when deciding, for example, if a given a.dtype implements round based on the dtype
History
Date User Action Args
2020-03-30 15:31:16Hameer Abbasisetrecipients: + Hameer Abbasi
2020-03-30 15:31:16Hameer Abbasisetmessageid: <1585582276.55.0.632143445993.issue40117@roundup.psfhosted.org>
2020-03-30 15:31:16Hameer Abbasilinkissue40117 messages
2020-03-30 15:31:16Hameer Abbasicreate