[Python-3000] proposal: comparing bytes and str raises TypeError

Barry Warsaw barry at python.org
Wed Aug 29 21:33:02 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Aug 29, 2007, at 1:31 PM, Jeremy Hylton wrote:

> I made a local change to my bytesobject.c to raise an exception
> whenever it is compared to a PyUnicode_Object.

+1.  I hit several silent errors in the email package because of  
this.  A TypeError would have been very helpful!

- -Barry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQCVAwUBRtXJ7nEjvBPtnXfVAQLFAwP+MuHX4glrmiapgxdpF9jYxXdvEZ7Bt0sn
VPq0KRgwj/t97CyqA15d2oo/ojkiZagk3erCKfVT8LQUHb73P9334gEVVWt6bIQn
2Cz8S40WhpOysr0FyLYbdhoPKTx4XihK1cmOZJ/Odv2G8SEjaKQfHlY5qAeHwAV7
M85o+Rc5U8o=
=cT6d
-----END PGP SIGNATURE-----


More information about the Python-3000 mailing list