cpython: 9dbb7bbc1449 (original) (raw)
Mercurial > cpython
changeset 106333:9dbb7bbc1449
Issues #12067: Merge hash recommendation from 3.6 [#12067]
Martin Panter vadmium+py@gmail.com | |
---|---|
date | Sun, 29 Jan 2017 10:10:30 +0000 |
parents | 9e9f292c65ec(current diff)9702c5f08df1(diff) |
children | db8b917bbfdd |
files | |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-)[+] [-] Doc/reference/expressions.rst 4 |
line wrap: on
line diff
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -1415,6 +1415,10 @@ some consistency rules, if possible:
sequences, but not to sets or mappings). See also the
:func:~functools.total_ordering
decorator.
+* The :func:hash
result should be consistent with equality.