commit | f6447e006587fcb632b80ca7e5888cefc1a26d58 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Mon Dec 19 13:15:35 2016 +0100 |
committer | Victor Stinner <victor.stinner@gmail.com> | Mon Dec 19 13:15:35 2016 +0100 |
tree | aee08bc2d5f095e9c3c9295d13c0f6b87ebe836b | |
parent | 805f283aa311043a498fecc29cf7bc13e4311fd6 [diff] |
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.