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.

Title: return value of PyUnicode_AsEncodedString() is not checked for NULL
Type: performance Stage:
Components: None Versions: Python 2.5.3
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: CWRU_Researcher1, mark.dickinson
Priority: normal Keywords:

Created on 2008-11-29 17:59 by CWRU_Researcher1, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg76614 - (view) Author: Brian Szuter (CWRU_Researcher1) Date: 2008-11-29 17:59
Line 6816

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

According to 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
msg76615 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2008-11-29 18:13
See explanation for issue 4466.

It seems to me that you have some misunderstandings about the way that 
Python works.  Please could you refrain from introducing new issues here 
unless you're sure that they really *are* issues.

If you're unsure whether something really is an issue or not, I'd be happy 
to answer queries by email.
Date User Action Args
2022-04-11 14:56:41adminsetgithub: 48717
2008-11-29 18:13:44mark.dickinsonsetstatus: open -> closed
resolution: not a bug
messages: + msg76615
nosy: + mark.dickinson
2008-11-29 17:59:47CWRU_Researcher1create