[issue1392] py3k-pep3137: str(bytes()) and str(buffer()) should raise TypeError patch

Guido van Rossum report at bugs.python.org
Mon Nov 5 21:44:23 CET 2007


Guido van Rossum added the comment:

The error message is fine, though you could drop the word "Calling"
without loss of information. ;-) Also, most warnings don't seem to use
a trailing period.

Perhaps you could expand this to also add a trap in the comparison
function when Py{String,Bytes} is compared to PyUnicode.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1392>
__________________________________


More information about the Python-bugs-list mailing list