Antoine Pitrou added the comment:

I don't like the idea of trying to hash the object. It may be a time-consuming 
operation, while the result will be thrown away.

I think restricting the optimization to bytes objects is fine. We can whitelist 
other types, such as memoryview.

----------

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

Reply via email to