diff options
author | Raymond Hettinger <python@rcn.com> | 2004-06-10 21:38:41 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-06-10 21:38:41 (GMT) |
commit | 27e403ebe914294d307348d2b83c39f96059e133 (patch) | |
tree | 418e9e758aa28a8458564a140063f70d6c2acec1 /Lib/pydoc.py | |
parent | 57c2d930f688ca50248241919bd815c85bf39939 (diff) | |
download | cpython-27e403ebe914294d307348d2b83c39f96059e133.zip cpython-27e403ebe914294d307348d2b83c39f96059e133.tar.gz cpython-27e403ebe914294d307348d2b83c39f96059e133.tar.bz2 |
Fixups to the hash function for frozensets.
* Non-zero initial value so that hash(frozenset()) != hash(0).
* Final permutation to differentiate nested sets.
* Add logic to make sure that -1 is not a possible hash value.
Diffstat (limited to 'Lib/pydoc.py')
0 files changed, 0 insertions, 0 deletions