diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-12-19 12:15:35 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-12-19 12:15:35 (GMT) |
commit | f6447e006587fcb632b80ca7e5888cefc1a26d58 (patch) | |
tree | aee08bc2d5f095e9c3c9295d13c0f6b87ebe836b /Lib/HTMLParser.py | |
parent | 805f283aa311043a498fecc29cf7bc13e4311fd6 (diff) | |
download | cpython-f6447e006587fcb632b80ca7e5888cefc1a26d58.zip cpython-f6447e006587fcb632b80ca7e5888cefc1a26d58.tar.gz cpython-f6447e006587fcb632b80ca7e5888cefc1a26d58.tar.bz2 |
doc: Suggest to hash(tuple of attr) rather than XOR
Issue #28383: __hash__ documentation recommends naive XOR to combine but this
is suboptimal. Update the doc to suggest to reuse the hash() method using a
tuple, with an example.
Diffstat (limited to 'Lib/HTMLParser.py')
0 files changed, 0 insertions, 0 deletions