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

Guido van Rossum report at bugs.python.org
Mon Nov 5 16:51:31 CET 2007


Guido van Rossum added the comment:

I'll look at the patches later, but we've gone over this before on the
list. str() of *any* object needs to return *something*. Yes, it's
unfortunate that this masks bugs in the transitional period, but it
really is the best thing in the long run. We had other exceptional
treatement for str vs. bytes (e.g. the comparison was raising TypeError
for a while) and we had to kill that too.

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


More information about the Python-bugs-list mailing list