Donald Stufft added the comment:

That's also a security sensitive thing, you don't want to compare two different 
encoding and have it accidentally fail. Strictly speaking you can only do a 
constant time comparison on bytes, the fact it accepts unicode at all (even on 
Python 3.x) is a convenience feature.

----------

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

Reply via email to