[New-bugs-announce] [issue14257] minor error in glossary wording regarding __hash__

Chris Rebert report at bugs.python.org
Mon Mar 12 02:27:06 CET 2012


New submission from Chris Rebert <pybugs at rebertia.com>:

The entry for "dictionary" reads in part:
    [...] The keys can be any object with __hash__() function and __eq__() methods. [...]

__hash__() is a method, not a function (well, it's a "hash function" in the computer science sense, but it's still confusing even if that reading is what was intended; I think delegating the hashing part of the explanation to __hash__()'s docs is fine). Remove the word "function" from said sentence.

----------
assignee: docs at python
components: Documentation
messages: 155427
nosy: cvrebert, docs at python
priority: normal
severity: normal
status: open
title: minor error in glossary wording regarding __hash__
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14257>
_______________________________________


More information about the New-bugs-announce mailing list