Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

For historical reasons. In Python 2, str and unicode consisting of ASCII 
characters can be equal. Equal values should have the same hash. In Python 3, 
bytes and str are always different. This can cause subtle bugs in the code 
ported from Python 2. Options -b and -bb were added to help to catch such bugs. 
For increasing a chance of catching such bugs, hashes of bytes and str 
consisting of ASCII characters with same codes, should be equal.

----------
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

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

Reply via email to