[issue25574] 2.7 incorrectly documents objects hash as equal to id
New submission from wim glenn: The 2.7 glossary still incorrectly mentions instances of user-defined classes hash equal to their id. https://docs.python.org/2/glossary.html#term-hashable Just a minor documentation bug that was unfortunately missed by http://bugs.python.org/issue21782 ---------- assignee: docs@python components: Documentation files: mywork.patch keywords: patch messages: 254237 nosy: docs@python, wim.glenn priority: normal severity: normal status: open title: 2.7 incorrectly documents objects hash as equal to id versions: Python 2.7 Added file: http://bugs.python.org/file40966/mywork.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue25574> _______________________________________
Elena Oat added the comment: Updated the documentation. Now it says that the hash is derived from id, as it says already in Python 3 docs. ---------- nosy: +Elena.Oat Added file: http://bugs.python.org/file41552/issue25574.diff _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue25574> _______________________________________
Roundup Robot added the comment: New changeset 499ee454eecc by Ezio Melotti in branch '2.7': #25574: backport glossary doc fix about hash and id of user-defined classes. https://hg.python.org/cpython/rev/499ee454eecc ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue25574> _______________________________________
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! ---------- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: -> resolved status: open -> closed type: -> enhancement _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue25574> _______________________________________
participants (4)
-
Elena Oat
-
Ezio Melotti
-
Roundup Robot
-
wim glenn