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

Raymond Hettinger report at bugs.python.org
Thu Apr 17 06:58:58 CEST 2014


Raymond Hettinger added the comment:

> Serhiy, Gregory, Raymond, Antoine: so what is your feeling on 
> this issue? Is it worth it?

I don't think it is worth it.  There may be some cases that benefit, but it adds extra branching code to the common cases (sets and dicts) that already have the identity check.

----------

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


More information about the Python-bugs-list mailing list