diff options
author | Victor Stinner <vstinner@python.org> | 2024-03-14 16:19:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-14 16:19:36 (GMT) |
commit | 19c3a2ff91ccf7444efadbc8f7e67269060050a2 (patch) | |
tree | a6e7d0e2710d66c585c7ffe4451eee85710d8ba7 /Misc | |
parent | b54d7c87aaf23fbd67171d0dd3e4f4ab736e6a48 (diff) | |
download | cpython-19c3a2ff91ccf7444efadbc8f7e67269060050a2.zip cpython-19c3a2ff91ccf7444efadbc8f7e67269060050a2.tar.gz cpython-19c3a2ff91ccf7444efadbc8f7e67269060050a2.tar.bz2 |
gh-111696, PEP 737: Add PyType_GetFullyQualifiedName() function (#116815)
Rewrite tests on type names in Python, they were written in C.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/C API/2024-03-14-15-17-11.gh-issue-111696.YmnvAi.rst | 4 | ||||
-rw-r--r-- | Misc/stable_abi.toml | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2024-03-14-15-17-11.gh-issue-111696.YmnvAi.rst b/Misc/NEWS.d/next/C API/2024-03-14-15-17-11.gh-issue-111696.YmnvAi.rst new file mode 100644 index 0000000..3d87c56 --- /dev/null +++ b/Misc/NEWS.d/next/C API/2024-03-14-15-17-11.gh-issue-111696.YmnvAi.rst @@ -0,0 +1,4 @@ +Add :c:func:`PyType_GetFullyQualifiedName` function to get the type's fully +qualified name. Equivalent to ``f"{type.__module__}.{type.__qualname__}"``, or +``type.__qualname__`` if ``type.__module__`` is not a string or is equal to +``"builtins"``. Patch by Victor Stinner. diff --git a/Misc/stable_abi.toml b/Misc/stable_abi.toml index ca7cf02..c76a3ce 100644 --- a/Misc/stable_abi.toml +++ b/Misc/stable_abi.toml @@ -2496,3 +2496,5 @@ [typedef.PyCFunctionFastWithKeywords] added = '3.13' # "abi-only" since 3.10. (Same story as PyCFunctionFast.) +[function.PyType_GetFullyQualifiedName] + added = '3.13' |