Debian Codegraph @

Doc/deprecations/c-api-pending-removal-in-future.rst

raw
1 Pending removal in future versions
2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3
4 The following APIs are deprecated and will be removed,
5 although there is currently no date scheduled for their removal.
6
7 * :c:macro:`Py_TPFLAGS_HAVE_FINALIZE`:
8 Unneeded since Python 3.8.
9 * :c:func:`PyErr_Fetch`:
10 Use :c:func:`PyErr_GetRaisedException` instead.
11 * :c:func:`PyErr_NormalizeException`:
12 Use :c:func:`PyErr_GetRaisedException` instead.
13 * :c:func:`PyErr_Restore`:
14 Use :c:func:`PyErr_SetRaisedException` instead.
15 * :c:func:`PyModule_GetFilename`:
16 Use :c:func:`PyModule_GetFilenameObject` instead.
17 * :c:func:`PyOS_AfterFork`:
18 Use :c:func:`PyOS_AfterFork_Child` instead.
19 * :c:func:`PySlice_GetIndicesEx`:
20 Use :c:func:`PySlice_Unpack` and :c:func:`PySlice_AdjustIndices` instead.
21 * :c:func:`PyUnicode_READY`:
22 Unneeded since Python 3.12
23 * :c:func:`!PyErr_Display`:
24 Use :c:func:`PyErr_DisplayException` instead.
25 * :c:func:`!_PyErr_ChainExceptions`:
26 Use :c:func:`!_PyErr_ChainExceptions1` instead.
27 * :c:member:`!PyBytesObject.ob_shash` member:
28 call :c:func:`PyObject_Hash` instead.
29 * Thread Local Storage (TLS) API:
30
31 * :c:func:`PyThread_create_key`:
32 Use :c:func:`PyThread_tss_alloc` instead.
33 * :c:func:`PyThread_delete_key`:
34 Use :c:func:`PyThread_tss_free` instead.
35 * :c:func:`PyThread_set_key_value`:
36 Use :c:func:`PyThread_tss_set` instead.
37 * :c:func:`PyThread_get_key_value`:
38 Use :c:func:`PyThread_tss_get` instead.
39 * :c:func:`PyThread_delete_key_value`:
40 Use :c:func:`PyThread_tss_delete` instead.
41 * :c:func:`PyThread_ReInitTLS`:
42 Unneeded since Python 3.7.