Tim Peters <tim.pet...@gmail.com> added the comment:

- Tuple objects don't currently reserve space to store their hash code, so it's 
likely this would increase the size of every tuple.

- It's unclear to me which natural use patterns would actually enjoy a major 
speed boost.  Note that dicts remember the hash codes of keys already, 
regardless of whether the key type remembers them too.  A tuple is typically 
constructed right before being used in a dict lookup, so for a one-shot use no 
time would be saved.  If the new tuple is used in multiple dict lookups, sure - 
but is that common?

----------
nosy: +tim_one

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9685>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to