[issue16286] Use hash if available to optimize a==b and a!=b for bytes and str

Antoine Pitrou report at bugs.python.org
Mon Oct 28 20:06:52 CET 2013


Antoine Pitrou added the comment:

> That raises the question of what strings ever have had their hash
> already computed if the string hasn't been interned or has been used
> in a dict or set?

Currently, none, I think.

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16286>
_______________________________________


More information about the Python-bugs-list mailing list