mirror of
https://github.com/python/cpython.git
synced 2025-10-15 03:10:29 +00:00
gh-117642: Fix PEP 737 implementation (GH-117643)
* Fix implementation of %#T and %#N (they were implemented as %T# and %N#). * Restore tests removed in gh-116417.
This commit is contained in:
parent
1a6594f661
commit
24a2bd0481
5 changed files with 42 additions and 8 deletions
|
@ -523,7 +523,7 @@ APIs:
|
|||
- Get the fully qualified name of an object type;
|
||||
call :c:func:`PyType_GetFullyQualifiedName`.
|
||||
|
||||
* - ``T#``
|
||||
* - ``#T``
|
||||
- :c:expr:`PyObject*`
|
||||
- Similar to ``T`` format, but use a colon (``:``) as separator between
|
||||
the module name and the qualified name.
|
||||
|
@ -533,7 +533,7 @@ APIs:
|
|||
- Get the fully qualified name of a type;
|
||||
call :c:func:`PyType_GetFullyQualifiedName`.
|
||||
|
||||
* - ``N#``
|
||||
* - ``#N``
|
||||
- :c:expr:`PyTypeObject*`
|
||||
- Similar to ``N`` format, but use a colon (``:``) as separator between
|
||||
the module name and the qualified name.
|
||||
|
@ -574,7 +574,7 @@ APIs:
|
|||
copied as-is to the result string, and any extra arguments discarded.
|
||||
|
||||
.. versionchanged:: 3.13
|
||||
Support for ``%T``, ``%T#``, ``%N`` and ``%N#`` formats added.
|
||||
Support for ``%T``, ``%#T``, ``%N`` and ``%#N`` formats added.
|
||||
|
||||
|
||||
.. c:function:: PyObject* PyUnicode_FromFormatV(const char *format, va_list vargs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue