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

Christian Heimes report at bugs.python.org
Mon Nov 5 15:22:51 CET 2007


New submission from Christian Heimes:

str(bytes()) == repr(bytes()) and str(buffer()) == repr(buffer()) is
causing a bunch bugs which are extremely hard to understand. On several
occasions I didn't understand the problem until I removed a str() call
or made str(bytes()) and str(buffer()) raise an exception.

----------
assignee: gvanrossum
components: Interpreter Core
files: py3k-pep3137_remove_str_bytes.patch
keywords: patch, py3k
messages: 57124
nosy: gvanrossum, tiran
priority: high
severity: normal
status: open
title: py3k-pep3137: str(bytes()) and str(buffer()) should raise TypeError patch
type: behavior
versions: Python 3.0
Added file: http://bugs.python.org/file8694/py3k-pep3137_remove_str_bytes.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1392>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: py3k-pep3137_remove_str_bytes.patch
Type: text/x-diff
Size: 3719 bytes
Desc: not available
Url : http://mail.python.org/pipermail/new-bugs-announce/attachments/20071105/2c8d55c7/attachment.patch 


More information about the New-bugs-announce mailing list