[Python-3000] Should str and bytes hash equally?

"Martin v. Löwis" martin at v.loewis.de
Fri Dec 14 00:03:13 CET 2007


> In Python 2.x, having the byte string and unicode hash equally was
> desirable, since u'' == ''. But since the bytes and str are always
> considered unequal, in Python 3k, I think would be good idea to make
> their hash unequal too. So, what do you think?

To phrase Adam Olsen's observation in a different way: *Why* do you
think it would be good idea? Do you think it would make things more
correct, or more efficient? If neither, what other desirable effect
would that change have?

Regards,
Martin


More information about the Python-3000 mailing list