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 aeros
Recipients aeros, docs@python, eric.araujo, ezio.melotti, jdemeyer, mdk, rhettinger, veky, willingc
Date 2019-09-03.04:38:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567485528.15.0.452104494482.issue37934@roundup.psfhosted.org>
In-reply-to
Content
Thanks for the explanation.

> Of course, you might argue that _once Python has NotImplemented_, it can be used elsewhere - but as I said, I don't think it should be encouraged.

Hmm, okay. My understanding of Raymond's explanation was more so "let's not encourage this because we don't want to guarantee the behavior" rather than "using it outside of binary operators shoudn't be encouraged".

Prior to Jerome's usage of it in ``fractions._as_integer_ratio()`` (https://github.com/python/cpython/pull/15327/files), I had not seen it used outside of special binary operators. I thought it was an interesting usage of NotImplemented, and the current phrasing of the documentation seemed to implicitly discourage it from being used in that manner.
History
Date User Action Args
2019-09-03 04:38:48aerossetrecipients: + aeros, rhettinger, ezio.melotti, eric.araujo, docs@python, jdemeyer, willingc, veky, mdk
2019-09-03 04:38:48aerossetmessageid: <1567485528.15.0.452104494482.issue37934@roundup.psfhosted.org>
2019-09-03 04:38:48aeroslinkissue37934 messages
2019-09-03 04:38:47aeroscreate