[Python-Dev] __qualname__ format question
Christian Tismer
tismer at stackless.com
Sun Jun 25 08:06:31 EDT 2017
Hi friends,
by chance, I stumbled over
meth_get__qualname__
in methodobject.c and
calculate_qualname
in descrobject.c .
The first uses
res = PyUnicode_FromFormat("%S.%s", type_qualname, m->m_ml->ml_name);
and the latter uses
res = PyUnicode_FromFormat("%S.%S", type_qualname, descr->d_name);
To my knowledge, the "%S" character is undefined in C99 and C11.
Q: Why this character, and why this difference?
cheers - Chris
--
Christian Tismer :^) tismer at stackless.com
Software Consulting : http://www.stackless.com/
Karl-Liebknecht-Str. 121 : https://github.com/PySide
14482 Potsdam : GPG key -> 0xFB7BEE0E
phone +49 173 24 18 776 fax +49 (30) 700143-0023
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-dev/attachments/20170625/19ca9183/attachment.sig>
More information about the Python-Dev
mailing list