Skip to content

Commit 4fbec93

Browse files
fix docs
1 parent ae4b856 commit 4fbec93

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

Doc/c-api/type.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ Type Objects
3737
3838
Clear the internal lookup cache. Return the current version tag.
3939
40+
.. versionchanged:: 3.16
41+
This function is now a no-op as the type cache is now implemented
42+
per-type. It still returns the current version tag.
43+
4044
.. c:function:: unsigned long PyType_GetFlags(PyTypeObject* type)
4145
4246
Return the :c:member:`~PyTypeObject.tp_flags` member of *type*. This function is primarily

Doc/whatsnew/3.16.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,8 @@ New features
325325
Porting to Python 3.16
326326
----------------------
327327

328-
* TODO
328+
* :c:func:`PyType_ClearCache` is now a no-op as the type cache is now
329+
implemented per-type. It still returns the current version tag.
329330

330331
Deprecated C APIs
331332
-----------------

Objects/typeobject.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,6 @@ unsigned int
960960
PyType_ClearCache(void)
961961
{
962962
PyInterpreterState *interp = _PyInterpreterState_GET();
963-
964963
return NEXT_VERSION_TAG(interp) - 1;
965964
}
966965

0 commit comments

Comments
 (0)