Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 34bdeb5

Browse files
committed
Add a comment about *not* caching the hash value. Issue #9685 suggested to memorize the hash value, but the feature request was rejected because no speed ups were found.
1 parent ed6f37c commit 34bdeb5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Objects/tupleobject.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,9 @@ tuplerepr(PyTupleObject *v)
322322
323323
1082527, 1165049, 1082531, 1165057, 1247581, 1330103, 1082533,
324324
1330111, 1412633, 1165069, 1247599, 1495177, 1577699
325+
326+
Tests have shown that it's not worth to cache the hash value, see
327+
issue #9685.
325328
*/
326329

327330
static Py_hash_t

0 commit comments

Comments
 (0)