[New-bugs-announce] [issue45962] Clarify that PyModule_AddString{Constant, Macro} use utf-8

Antony Lee report at bugs.python.org
Thu Dec 2 04:15:17 EST 2021


New submission from Antony Lee <anntzer.lee at gmail.com>:

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.

----------
assignee: docs at python
components: C API, Documentation
messages: 407518
nosy: Antony.Lee, docs at python
priority: normal
severity: normal
status: open
title: Clarify that PyModule_AddString{Constant,Macro} use utf-8
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45962>
_______________________________________


More information about the New-bugs-announce mailing list