Skip to content

Commit dc8558e

Browse files
bpo-43506: Doc: Update removal schedule for Py_UNICODE encoder APIs (GH-24885)
See PEP 624. (cherry picked from commit 1330338)
1 parent 9eda0df commit dc8558e

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

Doc/c-api/unicode.rst

+15-11
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,10 @@ Extension modules can continue using them, as they will not be removed in Python
722722
:c:type:`Py_UNICODE` buffer of the given *size* by ASCII digits 0--9
723723
according to their decimal value. Return ``NULL`` if an exception occurs.
724724
725+
.. deprecated-removed:: 3.3 3.11
726+
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
727+
:c:func:`Py_UNICODE_TODECIMAL`.
728+
725729
726730
.. c:function:: Py_UNICODE* PyUnicode_AsUnicodeAndSize(PyObject *unicode, Py_ssize_t *size)
727731
@@ -1055,7 +1059,7 @@ These are the generic codec APIs:
10551059
to be used is looked up using the Python codec registry. Return ``NULL`` if an
10561060
exception was raised by the codec.
10571061
1058-
.. deprecated-removed:: 3.3 4.0
1062+
.. deprecated-removed:: 3.3 3.11
10591063
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
10601064
:c:func:`PyUnicode_AsEncodedString`.
10611065
@@ -1125,7 +1129,7 @@ These are the UTF-8 codec APIs:
11251129
return a Python bytes object. Return ``NULL`` if an exception was raised by
11261130
the codec.
11271131
1128-
.. deprecated-removed:: 3.3 4.0
1132+
.. deprecated-removed:: 3.3 3.11
11291133
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
11301134
:c:func:`PyUnicode_AsUTF8String`, :c:func:`PyUnicode_AsUTF8AndSize` or
11311135
:c:func:`PyUnicode_AsEncodedString`.
@@ -1199,7 +1203,7 @@ These are the UTF-32 codec APIs:
11991203
12001204
Return ``NULL`` if an exception was raised by the codec.
12011205
1202-
.. deprecated-removed:: 3.3 4.0
1206+
.. deprecated-removed:: 3.3 3.11
12031207
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
12041208
:c:func:`PyUnicode_AsUTF32String` or :c:func:`PyUnicode_AsEncodedString`.
12051209
@@ -1274,7 +1278,7 @@ These are the UTF-16 codec APIs:
12741278
12751279
Return ``NULL`` if an exception was raised by the codec.
12761280
1277-
.. deprecated-removed:: 3.3 4.0
1281+
.. deprecated-removed:: 3.3 3.11
12781282
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
12791283
:c:func:`PyUnicode_AsUTF16String` or :c:func:`PyUnicode_AsEncodedString`.
12801284
@@ -1312,7 +1316,7 @@ These are the UTF-7 codec APIs:
13121316
nonzero, whitespace will be encoded in base-64. Both are set to zero for the
13131317
Python "utf-7" codec.
13141318
1315-
.. deprecated-removed:: 3.3 4.0
1319+
.. deprecated-removed:: 3.3 3.11
13161320
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
13171321
:c:func:`PyUnicode_AsEncodedString`.
13181322
@@ -1342,7 +1346,7 @@ These are the "Unicode Escape" codec APIs:
13421346
Encode the :c:type:`Py_UNICODE` buffer of the given *size* using Unicode-Escape and
13431347
return a bytes object. Return ``NULL`` if an exception was raised by the codec.
13441348
1345-
.. deprecated-removed:: 3.3 4.0
1349+
.. deprecated-removed:: 3.3 3.11
13461350
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
13471351
:c:func:`PyUnicode_AsUnicodeEscapeString`.
13481352
@@ -1373,7 +1377,7 @@ These are the "Raw Unicode Escape" codec APIs:
13731377
Encode the :c:type:`Py_UNICODE` buffer of the given *size* using Raw-Unicode-Escape
13741378
and return a bytes object. Return ``NULL`` if an exception was raised by the codec.
13751379
1376-
.. deprecated-removed:: 3.3 4.0
1380+
.. deprecated-removed:: 3.3 3.11
13771381
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
13781382
:c:func:`PyUnicode_AsRawUnicodeEscapeString` or
13791383
:c:func:`PyUnicode_AsEncodedString`.
@@ -1405,7 +1409,7 @@ ordinals and only these are accepted by the codecs during encoding.
14051409
return a Python bytes object. Return ``NULL`` if an exception was raised by
14061410
the codec.
14071411
1408-
.. deprecated-removed:: 3.3 4.0
1412+
.. deprecated-removed:: 3.3 3.11
14091413
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
14101414
:c:func:`PyUnicode_AsLatin1String` or
14111415
:c:func:`PyUnicode_AsEncodedString`.
@@ -1437,7 +1441,7 @@ codes generate errors.
14371441
return a Python bytes object. Return ``NULL`` if an exception was raised by
14381442
the codec.
14391443
1440-
.. deprecated-removed:: 3.3 4.0
1444+
.. deprecated-removed:: 3.3 3.11
14411445
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
14421446
:c:func:`PyUnicode_AsASCIIString` or
14431447
:c:func:`PyUnicode_AsEncodedString`.
@@ -1489,7 +1493,7 @@ These are the mapping codec APIs:
14891493
*mapping* object and return the result as a bytes object. Return ``NULL`` if
14901494
an exception was raised by the codec.
14911495
1492-
.. deprecated-removed:: 3.3 4.0
1496+
.. deprecated-removed:: 3.3 3.11
14931497
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
14941498
:c:func:`PyUnicode_AsCharmapString` or
14951499
:c:func:`PyUnicode_AsEncodedString`.
@@ -1521,7 +1525,7 @@ The following codec API is special in that maps Unicode to Unicode.
15211525
character *mapping* table to it and return the resulting Unicode object.
15221526
Return ``NULL`` when an exception was raised by the codec.
15231527
1524-
.. deprecated-removed:: 3.3 4.0
1528+
.. deprecated-removed:: 3.3 3.11
15251529
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
15261530
:c:func:`PyUnicode_Translate`. or :ref:`generic codec based API
15271531
<codec-registry>`

0 commit comments

Comments
 (0)