Author christian.heimes
Recipients christian.heimes, gvanrossum
Date 2007-11-05.15:59:54
SpamBayes Score 0.0700294
Marked as misclassified No
Message-id <472F3DF9.7070905@cheimes.de>
In-reply-to <1194277891.77.0.208229875188.issue1392@psf.upfronthosting.co.za>
Content
Guido van Rossum wrote:
> 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.

Can we agree to a compromise and make str(bytes()) return
bytes().decode("ascii")? I think it's a sensible default behavior and
catches the errors in the code I've seen so far.

Christian
History
Date User Action Args
2007-11-05 15:59:55christian.heimessetspambayes_score: 0.0700294 -> 0.0700294
recipients: + christian.heimes, gvanrossum
2007-11-05 15:59:55christian.heimeslinkissue1392 messages
2007-11-05 15:59:54christian.heimescreate