| 1 |
Pending Removal in Python 3.15 |
| 2 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 3 |
|
| 4 |
* The :c:func:`PyImport_ImportModuleNoBlock`: |
| 5 |
Use :c:func:`PyImport_ImportModule` instead. |
| 6 |
* :c:func:`PyWeakref_GetObject` and :c:func:`PyWeakref_GET_OBJECT`: |
| 7 |
Use :c:func:`PyWeakref_GetRef` instead. |
| 8 |
* :c:type:`Py_UNICODE` type and the :c:macro:`!Py_UNICODE_WIDE` macro: |
| 9 |
Use :c:type:`wchar_t` instead. |
| 10 |
* Python initialization functions: |
| 11 |
|
| 12 |
* :c:func:`PySys_ResetWarnOptions`: |
| 13 |
Clear :data:`sys.warnoptions` and :data:`!warnings.filters` instead. |
| 14 |
* :c:func:`Py_GetExecPrefix`: |
| 15 |
Get :data:`sys.base_exec_prefix` and :data:`sys.exec_prefix` instead. |
| 16 |
* :c:func:`Py_GetPath`: |
| 17 |
Get :data:`sys.path` instead. |
| 18 |
* :c:func:`Py_GetPrefix`: |
| 19 |
Get :data:`sys.base_prefix` and :data:`sys.prefix` instead. |
| 20 |
* :c:func:`Py_GetProgramFullPath`: |
| 21 |
Get :data:`sys.executable` instead. |
| 22 |
* :c:func:`Py_GetProgramName`: |
| 23 |
Get :data:`sys.executable` instead. |
| 24 |
* :c:func:`Py_GetPythonHome`: |
| 25 |
Get :c:member:`PyConfig.home` |
| 26 |
or the :envvar:`PYTHONHOME` environment variable instead. |