[Python-Dev] Caching tuple hashes

Jeff Epler jepler at unpythonic.net
Mon Aug 4 08:03:20 EDT 2003

Well, something like the following rule could be used to detect tuples
that can cache their hash values:

All the entries in the a hash-safe tuple must be non-NULL, and of an
immutable builtin type (int, long, float, string, unicode, and hash-safe


More information about the Python-Dev mailing list