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-02.05:27:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567402042.26.0.923463605899.issue37934@roundup.psfhosted.org>
In-reply-to
Content
Thanks for the feedback Vedran and Raymond.

> It is not the purpose of the docs to list use cases.  Mostly we say what something does or how it is defined. As Vedran says, how people use it is their own business.

The underlying issue here seems to be that I misunderstood the existing section to suggest to suggest binary special methods are the only use case, which is probably a good argument in favor of not listing additional use cases. This can be misinterpreted as suggesting that others are not recommended, and lead to further confusion.


First sentence of the NotImplemented documentation:

> Special value which should be returned by the binary special methods (e.g. __eq__(), __lt__(), __add__(), __rsub__(), etc.) to indicate that the operation is not implemented with respect to the other type; may be returned by the in-place binary special methods (e.g. __imul__(), __iand__(), etc.) for the same purpose. 

Would it be viable to rephrase the existing section in a manner that explains the functional purpose of NotImplemented without revolving around its use case in binary special methods?

> Also, please be careful expanded the docs.  They quickly become a promise.

Good point, I may not have adequately considered that mentioning a use case turns into a promise for that functionality. This could easily result in a significant long-term maintenance cost.
History
Date User Action Args
2019-09-02 05:27:22aerossetrecipients: + aeros, rhettinger, ezio.melotti, eric.araujo, docs@python, jdemeyer, willingc, veky, mdk
2019-09-02 05:27:22aerossetmessageid: <1567402042.26.0.923463605899.issue37934@roundup.psfhosted.org>
2019-09-02 05:27:22aeroslinkissue37934 messages
2019-09-02 05:27:21aeroscreate