summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorBrett Simmers <swtaarrs@users.noreply.github.com>2023-04-24 16:07:47 (GMT)
committerGitHub <noreply@github.com>2023-04-24 16:07:47 (GMT)
commitb7f4811c88609d1ff12f42a3335fda49f8a478f3 (patch)
tree9d66278478d9c33b743a1cc77677bff7c847a963 /Doc/c-api
parentdca27a69a8261353f7f986eb8f808f0d487ac4b7 (diff)
downloadcpython-b7f4811c88609d1ff12f42a3335fda49f8a478f3.zip
cpython-b7f4811c88609d1ff12f42a3335fda49f8a478f3.tar.gz
cpython-b7f4811c88609d1ff12f42a3335fda49f8a478f3.tar.bz2
gh-103091: Add PyUnstable_Type_AssignVersionTag (#103095)
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/type.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/c-api/type.rst b/Doc/c-api/type.rst
index 7b5d1fa..69b1529 100644
--- a/Doc/c-api/type.rst
+++ b/Doc/c-api/type.rst
@@ -232,6 +232,15 @@ Type Objects
.. versionadded:: 3.11
+.. c:function:: int PyUnstable_Type_AssignVersionTag(PyTypeObject *type)
+
+ Attempt to assign a version tag to the given type.
+
+ Returns 1 if the type already had a valid version tag or a new one was
+ assigned, or 0 if a new tag could not be assigned.
+
+ .. versionadded:: 3.12
+
Creating Heap-Allocated Types
.............................