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.

classification
Title: Clarify that PyModule_AddString{Constant,Macro} use utf-8
Type: enhancement Stage:
Components: C API, Documentation Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Antony.Lee, docs@python
Priority: normal Keywords:

Created on 2021-12-02 09:15 by Antony.Lee, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg407518 - (view) Author: Antony Lee (Antony.Lee) * Date: 2021-12-02 09:15
The documentation for PyModule_AddString{Constant,Macro} does not specify the encoding used.  Checking the source shows that these simply call PyUnicode_FromString and thus use utf8, but perhaps this could be made explicit.
History
Date User Action Args
2022-04-11 14:59:53adminsetgithub: 90120
2021-12-03 13:47:51AlexWaygoodsettype: enhancement
2021-12-02 09:15:17Antony.Leecreate