[issue1392] py3k-pep3137: str(bytes()) and str(buffer()) should raise TypeError patch
Christian Heimes
report at bugs.python.org
Mon Nov 5 17:27:04 CET 2007
Christian Heimes added the comment:
New patch:
static PyObject *
string_str(PyObject *op)
{
return PyObject_CallMethod(op, "decode", "s", "ascii");
}
Added file: http://bugs.python.org/file8696/py3k-pep3137_str_bytes_ascii.patch
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1392>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: py3k-pep3137_str_bytes_ascii.patch
Type: text/x-diff
Size: 4035 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071105/e15e5337/attachment.patch
More information about the Python-bugs-list
mailing list