gh-103091: Add PyUnstable_Type_AssignVersionTag (#103095)

This commit is contained in:
Brett Simmers 2023-04-24 09:07:47 -07:00 committed by GitHub
parent dca27a69a8
commit b7f4811c88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 49 additions and 0 deletions

View file

@ -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
.............................