[issue18688] Document undocumented Unicode object API
New submission from Serhiy Storchaka: Include/unicodeobject.h contains followed names which are declared as public but are not documented in Doc/c-api/unicode.rst. PyUnicodeIter_Type Py_UNICODE_REPLACEMENT_CHARACTER PyUnicode_Resize PyUnicode_InternImmortal PyUnicode_CHECK_INTERNED PyUnicode_FromOrdinal PyUnicode_GetDefaultEncoding PyUnicode_AsDecodedObject PyUnicode_AsDecodedUnicode PyUnicode_AsEncodedObject PyUnicode_AsEncodedUnicode PyUnicode_BuildEncodingMap PyUnicode_DecodeCodePageStateful PyUnicode_Append PyUnicode_AppendAndDel PyUnicode_Partition PyUnicode_RPartition PyUnicode_RSplit PyUnicode_IsIdentifier _PyUnicode_FromId _PyUnicode_ClearStaticStrings They should be either documented or declared as private. PyUnicode_AsEncodedObject only mentioned in Doc/whatsnew/3.3.rst as recomended replacement of PyUnicode_Encode. ---------- assignee: docs@python components: Documentation, Unicode messages: 194705 nosy: docs@python, ezio.melotti, serhiy.storchaka priority: normal severity: normal stage: needs patch status: open title: Document undocumented Unicode object API type: behavior versions: Python 3.3, Python 3.4 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18688> _______________________________________
Changes by Antoine Pitrou <pitrou@free.fr>: ---------- nosy: +haypo _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18688> _______________________________________
Serhiy Storchaka added the comment: It will be good first resolve issue18697. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18688> _______________________________________
Changes by Serhiy Storchaka <storchaka@gmail.com>: ---------- nosy: +r.david.murray _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18688> _______________________________________
Changes by Serhiy Storchaka <storchaka@gmail.com>: ---------- versions: +Python 3.5 -Python 3.3 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18688> _______________________________________
Berker Peksag added the comment: This is a duplicate of issue 1944. ---------- nosy: +berker.peksag resolution: -> duplicate stage: needs patch -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18688> _______________________________________
Changes by Berker Peksag <berker.peksag@gmail.com>: ---------- superseder: -> Document PyUnicode_* API _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18688> _______________________________________
participants (3)
-
Antoine Pitrou
-
Berker Peksag
-
Serhiy Storchaka