A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2017-June/148457.html below:

[Python-Dev] __qualname__ format question

[Python-Dev] __qualname__ format question [Python-Dev] __qualname__ format questionSerhiy Storchaka storchaka at gmail.com
Sun Jun 25 08:41:55 EDT 2017
25.06.17 15:06, Christian Tismer пише:
> 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?

Se the documentation of PyUnicode_FromFormat().

https://docs.python.org/3/c-api/unicode.html#c.PyUnicode_FromFormat

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4