diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-04-08 16:27:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-08 16:27:25 (GMT) |
commit | 24a2bd048115efae799b0a9c5dd9fbb7a0806978 (patch) | |
tree | 38bf066ab930bebc5bbe661478d0ded22e5bafb5 /Doc/c-api | |
parent | 1a6594f66166206b08f24c3ba633c85f86f99a56 (diff) | |
download | cpython-24a2bd048115efae799b0a9c5dd9fbb7a0806978.zip cpython-24a2bd048115efae799b0a9c5dd9fbb7a0806978.tar.gz cpython-24a2bd048115efae799b0a9c5dd9fbb7a0806978.tar.bz2 |
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.
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/unicode.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst index 78eec14..7320d03 100644 --- a/Doc/c-api/unicode.rst +++ b/Doc/c-api/unicode.rst @@ -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) |