summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-12-19 12:09:28 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-12-19 12:09:28 (GMT)
commit509476b37085abda9c8cc0fba1451cb035e0b442 (patch)
treed284534019144fcfa4f4fa52fc32f307c1fb21c0 /Parser
parentbfbc29cb8f5797f239a6ad8944edfea4e153cb75 (diff)
downloadcpython-509476b37085abda9c8cc0fba1451cb035e0b442.zip
cpython-509476b37085abda9c8cc0fba1451cb035e0b442.tar.gz
cpython-509476b37085abda9c8cc0fba1451cb035e0b442.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 'Parser')
0 files changed, 0 insertions, 0 deletions