[Python-Dev] qualname format question (original) (raw)
Serhiy Storchaka storchaka at gmail.com
Sun Jun 25 08:41:55 EDT 2017
- Previous message (by thread): [Python-Dev] __qualname__ format question
- Next message (by thread): [Python-Dev] __qualname__ format question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
25.06.17 15:06, Christian Tismer пише:
by chance, I stumbled over
methget_qualname_ in methodobject.c and calculatequalname in descrobject.c . The first uses res = PyUnicodeFromFormat("%S.%s", typequalname, m->mml->mlname); and the latter uses res = PyUnicodeFromFormat("%S.%S", typequalname, descr->dname); To my knowledge, the "%S" character is undefined in C99 and C11. Q: Why this character, and why this difference?
Se the documentation of PyUnicode_FromFormat().
https://docs.python.org/3/c-api/unicode.html#c.PyUnicode_FromFormat
- Previous message (by thread): [Python-Dev] __qualname__ format question
- Next message (by thread): [Python-Dev] __qualname__ format question
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]