Eric V. Smith <e...@trueblade.com> added the comment:

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.

----------
nosy: +eric.smith
type: behavior -> enhancement
versions: +Python 3.9 -Python 3.5, Python 3.6, Python 3.7, Python 3.8

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

Reply via email to