File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -325,7 +325,8 @@ New features
325325Porting 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
330331Deprecated C APIs
331332-----------------
Original file line number Diff line number Diff line change @@ -960,7 +960,6 @@ unsigned int
960960PyType_ClearCache (void )
961961{
962962 PyInterpreterState * interp = _PyInterpreterState_GET ();
963-
964963 return NEXT_VERSION_TAG (interp ) - 1 ;
965964}
966965
You can’t perform that action at this time.
0 commit comments