Skip to content

Commit bd11e85

Browse files
committed
What's New entry
1 parent 1cb20e6 commit bd11e85

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Doc/whatsnew/3.15.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,6 +1703,17 @@ New features
17031703
* Add :c:func:`PyTuple_FromArray` to create a :class:`tuple` from an array.
17041704
(Contributed by Victor Stinner in :gh:`111489`.)
17051705

1706+
* Add functions that are guaranteed to be safe for use in
1707+
:c:member:`~PyTypeObject.tp_traverse` handlers:
1708+
:c:func:`PyObject_GetTypeData_DuringGC`,
1709+
:c:func:`PyObject_GetItemData_DuringGC`,
1710+
:c:func:`PyType_GetModuleState_DuringGC`,
1711+
:c:func:`PyModule_GetState_DuringGC`, :c:func:`PyModule_GetToken_DuringGC`,
1712+
:c:func:`PyType_GetBaseByToken_DuringGC`,
1713+
:c:func:`PyType_GetModule_DuringGC`,
1714+
:c:func:`PyType_GetModuleByToken_DuringGC`.
1715+
(Contributed by Petr Viktorin in :gh:`145925`.)
1716+
17061717
* Add :c:func:`PyObject_Dump` to dump an object to ``stderr``.
17071718
It should only be used for debugging.
17081719
(Contributed by Victor Stinner in :gh:`141070`.)

0 commit comments

Comments
 (0)