This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author CWRU_Researcher1
Recipients CWRU_Researcher1
Date 2008-11-29.17:59:46
SpamBayes Score 0.021773692
Marked as misclassified No
Message-id <1227981587.71.0.239031040576.issue4467@psf.upfronthosting.co.za>
In-reply-to
Content
Python-2.5.2/Objects/unicodeobject.c(unicode_str)
Line 6816

The return value of PyUnicode_AsEncodedString() is not checked for NULL.

According to
http://www.python.org/doc/2.5.2/api/builtinCodecs.html#l2h-519 this
indicates an exception occurred.

See the following for instances of where this value is checked:
Parser/tokenizer.c(tok_stdin_decode) 726
Parser/tokenizer.c(dec_utf8) 1555
Objects/object.c(PyObject_GenericSetAttr) 1386
Objects/object.c(PyObject_GenericGetAttr) 1260
Objects/object.c(PyObject_SetAttr) 1161
Objects/object.c(PyObject_Str) 434-437
Objects/stringobject.c(PyString_AsEncodedString) 501
Objects/stringobject.c(PyString_AsDecodedString) 421
Objects/unicodeobject.c(_PyUnicodeUCS2_AsDefaultEncodedString) 735
History
Date User Action Args
2008-11-29 17:59:47CWRU_Researcher1setrecipients: + CWRU_Researcher1
2008-11-29 17:59:47CWRU_Researcher1setmessageid: <1227981587.71.0.239031040576.issue4467@psf.upfronthosting.co.za>
2008-11-29 17:59:46CWRU_Researcher1linkissue4467 messages
2008-11-29 17:59:46CWRU_Researcher1create