Issue 37051: Glossary item "hashable" incorrect (original) (raw)
Issue37051
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.
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/81232
classification
Title: | Glossary item "hashable" incorrect | ||
---|---|---|---|
Type: | behavior | Stage: | resolved |
Components: | Documentation | Versions: | Python 3.7 |
process
Status: | closed | Resolution: | fixed |
---|---|---|---|
Dependencies: | Superseder: | ||
Assigned To: | rhettinger | Nosy List: | docs@python, john.riehl, josh.r, rhettinger |
Priority: | normal | Keywords: | patch |
Created on 2019-05-25 21:10 by john.riehl, last changed 2022-04-11 14:59 by admin. This issue is now closed.
Pull Requests | |||
---|---|---|---|
URL | Status | Linked | Edit |
PR 13587 | merged | rhettinger,2019-05-26 19:21 | |
PR 13595 | merged | miss-islington,2019-05-27 17:21 |
Messages (4) | ||
---|---|---|
msg343514 - (view) | Author: John Riehl (john.riehl) | Date: 2019-05-25 21:10 |
The entry in the glossary for "hashable" (https://docs.python.org/3/glossary.html#term-hashable) states "All of Python’s immutable built-in objects are hashable." Tuples are described as immutable sequence types (https://docs.python.org/3/library/stdtypes.html#immutable-sequence-types), but they are not hashable unless all of their elements are hashable. Suggest updating the glossary to reflect this. | ||
msg343590 - (view) | Author: Josh Rosenberg (josh.r) * ![]() |
Date: 2019-05-27 00:56 |
For that matter, slices are immutable built-ins, but they're not hashable (presumably to avoid silently working with dictionaries in a non-slice capacity). | ||
msg343665 - (view) | Author: Raymond Hettinger (rhettinger) * ![]() |
Date: 2019-05-27 17:21 |
New changeset cc1c582f6fe450ce1c7de849137039e9b5fab8eb by Raymond Hettinger in branch 'master': bpo-37051: Refine note on what objects are hashable (GH-13587) https://github.com/python/cpython/commit/cc1c582f6fe450ce1c7de849137039e9b5fab8eb | ||
msg343666 - (view) | Author: Raymond Hettinger (rhettinger) * ![]() |
Date: 2019-05-27 17:43 |
New changeset e8318f31f35dc851684c094b268e4a85d7f357c9 by Raymond Hettinger (Miss Islington (bot)) in branch '3.7': bpo-37051: Refine note on what objects are hashable (GH-13587) (GH-13595) https://github.com/python/cpython/commit/e8318f31f35dc851684c094b268e4a85d7f357c9 |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:59:15 | admin | set | github: 81232 |
2019-05-27 17:43:57 | rhettinger | set | status: open -> closedresolution: fixedstage: patch review -> resolved |
2019-05-27 17:43:25 | rhettinger | set | messages: + |
2019-05-27 17:21:56 | rhettinger | set | messages: + |
2019-05-27 17:21:43 | miss-islington | set | pull_requests: + <pull%5Frequest13502> |
2019-05-27 00:56:38 | josh.r | set | nosy: + josh.rmessages: + |
2019-05-26 19:21:45 | rhettinger | set | keywords: + patchstage: patch reviewpull_requests: + <pull%5Frequest13494> |
2019-05-26 19:15:52 | rhettinger | set | assignee: docs@python -> rhettingernosy: + rhettinger |
2019-05-25 21:10:53 | john.riehl | create |
Supported by The Python Software Foundation,
Powered by Roundup
Copyright © 1990-2022, Python Software Foundation
Legal Statements