mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
gh-103091: Add PyUnstable_Type_AssignVersionTag (#103095)
This commit is contained in:
parent
dca27a69a8
commit
b7f4811c88
6 changed files with 49 additions and 0 deletions
|
|
@ -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
|
||||
.............................
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue