Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Move C API pending deprecations to C API section, to match the others
  • Loading branch information
CAM-Gerlach committed Oct 16, 2022
commit 54c9b4edbd64dfd54457bde73181cc9cba984ebb
53 changes: 31 additions & 22 deletions Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1565,15 +1565,17 @@ Deprecated C APIs are :ref:`listed separately <whatsnew311-c-api-deprecated>`.
(Contributed by Serhiy Storchaka and Miro Hrončok in :gh:`92728`.)


.. _whatsnew311-pending-removal-312:
.. _whatsnew311-pending-removal:
.. _whatsnew311-python-api-pending-removal:

Pending Removal in Python 3.12
==============================

The following APIs have been deprecated in earlier Python releases,
The following Python APIs have been deprecated in earlier Python releases,
and will be removed in Python 3.12.

Python API:
C APIs pending removal are
:ref:`listed separately <whatsnew311-c-api-pending-removal>`.

* :class:`pkgutil.ImpImporter`
* :class:`pkgutil.ImpLoader`
Expand Down Expand Up @@ -1602,25 +1604,6 @@ Python API:
* :func:`sqlite3.OptimizedUnicode`
* :func:`sqlite3.enable_shared_cache`

C API:

* :c:func:`PyUnicode_AS_DATA`
* :c:func:`PyUnicode_AS_UNICODE`
* :c:func:`PyUnicode_AsUnicodeAndSize`
* :c:func:`PyUnicode_AsUnicode`
* :c:func:`PyUnicode_FromUnicode`
* :c:func:`PyUnicode_GET_DATA_SIZE`
* :c:func:`PyUnicode_GET_SIZE`
* :c:func:`PyUnicode_GetSize`
* :c:func:`PyUnicode_IS_COMPACT`
* :c:func:`PyUnicode_IS_READY`
* :c:func:`PyUnicode_READY`
* :c:func:`Py_UNICODE_WSTR_LENGTH`
* :c:func:`_PyUnicode_AsUnicode`
* :c:macro:`PyUnicode_WCHAR_KIND`
* :c:type:`PyUnicodeObject`
* :c:func:`PyUnicode_InternImmortal()`


.. _whatsnew311-removed:
.. _whatsnew311-python-api-removed:
Expand Down Expand Up @@ -2258,6 +2241,32 @@ Deprecated
(Contributed by Inada Naoki in :issue:`46864`.)


.. _whatsnew311-c-api-pending-removal:

Pending Removal in Python 3.12
------------------------------

The following C APIs have been deprecated in earlier Python releases,
and will be removed in Python 3.12.

* :c:func:`PyUnicode_AS_DATA`
* :c:func:`PyUnicode_AS_UNICODE`
* :c:func:`PyUnicode_AsUnicodeAndSize`
* :c:func:`PyUnicode_AsUnicode`
* :c:func:`PyUnicode_FromUnicode`
* :c:func:`PyUnicode_GET_DATA_SIZE`
* :c:func:`PyUnicode_GET_SIZE`
* :c:func:`PyUnicode_GetSize`
* :c:func:`PyUnicode_IS_COMPACT`
* :c:func:`PyUnicode_IS_READY`
* :c:func:`PyUnicode_READY`
* :c:func:`Py_UNICODE_WSTR_LENGTH`
* :c:func:`_PyUnicode_AsUnicode`
* :c:macro:`PyUnicode_WCHAR_KIND`
* :c:type:`PyUnicodeObject`
* :c:func:`PyUnicode_InternImmortal()`


.. _whatsnew311-c-api-removed:

Removed
Expand Down