[docs] [issue25438] document what codec PyMemberDef T_STRING decodes the char * as

Josh Rosenberg report at bugs.python.org
Tue Oct 20 23:22:07 EDT 2015


Josh Rosenberg added the comment:

Checking the source ( https://hg.python.org/cpython/file/tip/Python/structmember.c#l51 ), it calls PyUnicodeFromString ( https://docs.python.org/3/c-api/unicode.html?highlight=pyunicode_fromstring#c.PyUnicode_FromString ), so it's always interpreted as UTF-8.

----------
nosy: +josh.r

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25438>
_______________________________________


More information about the docs mailing list