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 eric.smith
Recipients Hameer Abbasi, eric.smith
Date 2020-03-30.15:43:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1585583024.25.0.831646321873.issue40117@roundup.psfhosted.org>
In-reply-to
Content
NotImplemented is documented as only being used for binary operators: https://docs.python.org/3/library/constants.html#NotImplemented

Changing that seems like a pretty large issue. I'd suggest discussing this on python-ideas.

Maybe better for your situation is to actually raise NotImplementedError yourself, or ValaueError if that's what you really want to see.

Changing version numbers, since this feature could only go in to 3.9.
History
Date User Action Args
2020-03-30 15:43:44eric.smithsetrecipients: + eric.smith, Hameer Abbasi
2020-03-30 15:43:44eric.smithsetmessageid: <1585583024.25.0.831646321873.issue40117@roundup.psfhosted.org>
2020-03-30 15:43:44eric.smithlinkissue40117 messages
2020-03-30 15:43:44eric.smithcreate