Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 1.04 KB

c-api-pending-removal-in-3.15.rst

File metadata and controls

20 lines (18 loc) · 1.04 KB

Pending Removal in Python 3.15

  • The bundled copy of libmpdecimal.
  • :c:func:`PyImport_ImportModuleNoBlock`: use :c:func:`PyImport_ImportModule` instead.
  • :c:func:`PyWeakref_GET_OBJECT`: use :c:func:`!PyWeakref_GetRef` instead.
  • :c:func:`PyWeakref_GetObject`: use :c:func:`!PyWeakref_GetRef` instead.
  • :c:type:`!Py_UNICODE_WIDE` type: use :c:type:`wchar_t` instead.
  • :c:type:`Py_UNICODE` type: use :c:type:`wchar_t` instead.
  • Python initialization functions:
    • :c:func:`PySys_ResetWarnOptions`: clear :data:`sys.warnoptions` and :data:`!warnings.filters` instead.
    • :c:func:`Py_GetExecPrefix`: get :data:`sys.exec_prefix` instead.
    • :c:func:`Py_GetPath`: get :data:`sys.path` instead.
    • :c:func:`Py_GetPrefix`: get :data:`sys.prefix` instead.
    • :c:func:`Py_GetProgramFullPath`: get :data:`sys.executable` instead.
    • :c:func:`Py_GetProgramName`: get :data:`sys.executable` instead.
    • :c:func:`Py_GetPythonHome`: get :c:member:`PyConfig.home` or the :envvar:`PYTHONHOME` environment variable instead.