[issue18353] PyUnicode_WRITE_CHAR macro definition missing
New submission from Wolf Ihlenfeldt: Above macro is mentioned in the documentation (3.3.2), but does not appear in the header files. Associated function PyUnicode_WriteChar() is present and works as expected. ---------- assignee: docs@python components: Documentation, Unicode messages: 192247 nosy: Wolf.Ihlenfeldt, docs@python, ezio.melotti priority: normal severity: normal status: open title: PyUnicode_WRITE_CHAR macro definition missing type: compile error versions: Python 3.3 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18353> _______________________________________
Martin v. Löwis added the comment: I'll declare that the documentation is in error. I was pondering adding this macro, and the API changed forth and back several times (also after other people started contributing to the new Unicode API). The API is now what is implemented, and the documentation should follow. ---------- nosy: +loewis _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18353> _______________________________________
STINNER Victor added the comment: I don't remember where this macro come from. It is mention in my review of the PEP (the text of the PEP, not the implementation): http://mail.python.org/pipermail/python-dev/2011-September/113668.html PyUnicode_WRITE_CHAR() was removed from the PEP by the following commit: http://hg.python.org/peps/rev/5c69799e1a94 I'm not sure that the macro ever existed :-) Anyway, it should be removed from the doc! ---------- nosy: +haypo _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18353> _______________________________________
Corey Brune added the comment: Hello all, I removed the reference to PyUnicode_WRITE_CHAR macro in unicode.rst. Thanks, Corey ---------- keywords: +patch nosy: +cbrune Added file: http://bugs.python.org/file30903/unicode.rst.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18353> _______________________________________
Roundup Robot added the comment: New changeset 29e555e5956b by Berker Peksag in branch '3.5': Issue #18353: Remove PyUnicode_WRITE_CHAR macro link from c-api/unicode.rst https://hg.python.org/cpython/rev/29e555e5956b New changeset 8c53fdc011a3 by Berker Peksag in branch 'default': Issue #18353: Remove PyUnicode_WRITE_CHAR macro link from c-api/unicode.rst https://hg.python.org/cpython/rev/8c53fdc011a3 ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18353> _______________________________________
Berker Peksag added the comment: Thanks for the report Wolf and thanks for the patch Corey. ---------- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed type: compile error -> behavior versions: +Python 3.5, Python 3.6 -Python 3.3 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue18353> _______________________________________
participants (6)
-
Berker Peksag
-
Corey Brune
-
Martin v. Löwis
-
Roundup Robot
-
STINNER Victor
-
Wolf Ihlenfeldt