]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add a comment about *not* caching the hash value. Issue #9685 suggested to memorize...
authorChristian Heimes <christian@cheimes.de>
Mon, 7 Jan 2013 20:24:18 +0000 (21:24 +0100)
committerChristian Heimes <christian@cheimes.de>
Mon, 7 Jan 2013 20:24:18 +0000 (21:24 +0100)
Objects/tupleobject.c

index ec3f91b2c65f8faa7f8e9f313d29bc2ecbe95b28..0a959092753937d75ae5386f7e388537f4cd0b81 100644 (file)
@@ -322,6 +322,9 @@ error:
 
      1082527, 1165049, 1082531, 1165057, 1247581, 1330103, 1082533,
      1330111, 1412633, 1165069, 1247599, 1495177, 1577699
+
+   Tests have shown that it's not worth to cache the hash value, see
+   issue #9685.
 */
 
 static Py_hash_t