[issue34552] Clarify built-in types comparisons
New submission from Windson Yang <wiwindson@gmail.com>: In https://docs.python.org/3.5/library/stdtypes.html#comparisons "some types (for example, function objects) support only a degenerate notion of comparison where any two objects of that type are unequal." We had some discussion at zulipchat already: "more seriously: I think we can just delete that sentence. The next sentence makes clear that < and friends arne't always defined, and the sentence after that notes that == defaults to is if there's nothing better." - by Nathaniel J. Smith IMO, I think we should also clarify the relationship between "==", "is" and "__eq__". ---------- assignee: docs@python components: Documentation messages: 324403 nosy: Windson Yang, docs@python, gvanrossum, njs, zach.ware priority: normal severity: normal status: open title: Clarify built-in types comparisons type: enhancement versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue34552> _______________________________________
Change by Windson Yang <wiwindson@gmail.com>: ---------- keywords: +patch pull_requests: +8497 stage: -> patch review _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue34552> _______________________________________
miss-islington <mariatta.wijaya+miss-islington@gmail.com> added the comment: New changeset 1aeba7458d2aaf8a03b5d443179d122ceb2ccece by Miss Islington (bot) (Windson yang) in branch 'master': bpo-34552: Clarify built-in types comparisons (GH-9035) https://github.com/python/cpython/commit/1aeba7458d2aaf8a03b5d443179d122ceb2... ---------- nosy: +miss-islington _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue34552> _______________________________________
Irit Katriel <iritkatriel@yahoo.com> added the comment: This seems complete, can it be closed? ---------- nosy: +iritkatriel _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue34552> _______________________________________
Guido van Rossum <guido@python.org> added the comment: Yup. Thanks for catching this! ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue34552> _______________________________________
participants (4)
-
Guido van Rossum
-
Irit Katriel
-
miss-islington
-
Windson Yang