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

Skip to content

Commit a838e47

Browse files
bpo-43506: Doc: Update removal schedule for Py_UNICODE encoder APIs (GH-24885)
See PEP 624. (cherry picked from commit 1330338) Co-authored-by: Inada Naoki <[email protected]>
1 parent d0312ce commit a838e47

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

Doc/c-api/unicode.rst

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,10 @@ Extension modules can continue using them, as they will not be removed in Python
727727
:c:type:`Py_UNICODE` buffer of the given *size* by ASCII digits 0--9
728728
according to their decimal value. Return ``NULL`` if an exception occurs.
729729
730+
.. deprecated-removed:: 3.3 3.11
731+
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
732+
:c:func:`Py_UNICODE_TODECIMAL`.
733+
730734
731735
.. c:function:: Py_UNICODE* PyUnicode_AsUnicodeAndSize(PyObject *unicode, Py_ssize_t *size)
732736
@@ -1060,7 +1064,7 @@ These are the generic codec APIs:
10601064
to be used is looked up using the Python codec registry. Return ``NULL`` if an
10611065
exception was raised by the codec.
10621066
1063-
.. deprecated-removed:: 3.3 4.0
1067+
.. deprecated-removed:: 3.3 3.11
10641068
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
10651069
:c:func:`PyUnicode_AsEncodedString`.
10661070
@@ -1130,7 +1134,7 @@ These are the UTF-8 codec APIs:
11301134
return a Python bytes object. Return ``NULL`` if an exception was raised by
11311135
the codec.
11321136
1133-
.. deprecated-removed:: 3.3 4.0
1137+
.. deprecated-removed:: 3.3 3.11
11341138
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
11351139
:c:func:`PyUnicode_AsUTF8String`, :c:func:`PyUnicode_AsUTF8AndSize` or
11361140
:c:func:`PyUnicode_AsEncodedString`.
@@ -1204,7 +1208,7 @@ These are the UTF-32 codec APIs:
12041208
12051209
Return ``NULL`` if an exception was raised by the codec.
12061210
1207-
.. deprecated-removed:: 3.3 4.0
1211+
.. deprecated-removed:: 3.3 3.11
12081212
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
12091213
:c:func:`PyUnicode_AsUTF32String` or :c:func:`PyUnicode_AsEncodedString`.
12101214
@@ -1279,7 +1283,7 @@ These are the UTF-16 codec APIs:
12791283
12801284
Return ``NULL`` if an exception was raised by the codec.
12811285
1282-
.. deprecated-removed:: 3.3 4.0
1286+
.. deprecated-removed:: 3.3 3.11
12831287
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
12841288
:c:func:`PyUnicode_AsUTF16String` or :c:func:`PyUnicode_AsEncodedString`.
12851289
@@ -1317,7 +1321,7 @@ These are the UTF-7 codec APIs:
13171321
nonzero, whitespace will be encoded in base-64. Both are set to zero for the
13181322
Python "utf-7" codec.
13191323
1320-
.. deprecated-removed:: 3.3 4.0
1324+
.. deprecated-removed:: 3.3 3.11
13211325
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
13221326
:c:func:`PyUnicode_AsEncodedString`.
13231327
@@ -1347,7 +1351,7 @@ These are the "Unicode Escape" codec APIs:
13471351
Encode the :c:type:`Py_UNICODE` buffer of the given *size* using Unicode-Escape and
13481352
return a bytes object. Return ``NULL`` if an exception was raised by the codec.
13491353
1350-
.. deprecated-removed:: 3.3 4.0
1354+
.. deprecated-removed:: 3.3 3.11
13511355
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
13521356
:c:func:`PyUnicode_AsUnicodeEscapeString`.
13531357
@@ -1378,7 +1382,7 @@ These are the "Raw Unicode Escape" codec APIs:
13781382
Encode the :c:type:`Py_UNICODE` buffer of the given *size* using Raw-Unicode-Escape
13791383
and return a bytes object. Return ``NULL`` if an exception was raised by the codec.
13801384
1381-
.. deprecated-removed:: 3.3 4.0
1385+
.. deprecated-removed:: 3.3 3.11
13821386
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
13831387
:c:func:`PyUnicode_AsRawUnicodeEscapeString` or
13841388
:c:func:`PyUnicode_AsEncodedString`.
@@ -1410,7 +1414,7 @@ ordinals and only these are accepted by the codecs during encoding.
14101414
return a Python bytes object. Return ``NULL`` if an exception was raised by
14111415
the codec.
14121416
1413-
.. deprecated-removed:: 3.3 4.0
1417+
.. deprecated-removed:: 3.3 3.11
14141418
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
14151419
:c:func:`PyUnicode_AsLatin1String` or
14161420
:c:func:`PyUnicode_AsEncodedString`.
@@ -1442,7 +1446,7 @@ codes generate errors.
14421446
return a Python bytes object. Return ``NULL`` if an exception was raised by
14431447
the codec.
14441448
1445-
.. deprecated-removed:: 3.3 4.0
1449+
.. deprecated-removed:: 3.3 3.11
14461450
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
14471451
:c:func:`PyUnicode_AsASCIIString` or
14481452
:c:func:`PyUnicode_AsEncodedString`.
@@ -1494,7 +1498,7 @@ These are the mapping codec APIs:
14941498
*mapping* object and return the result as a bytes object. Return ``NULL`` if
14951499
an exception was raised by the codec.
14961500
1497-
.. deprecated-removed:: 3.3 4.0
1501+
.. deprecated-removed:: 3.3 3.11
14981502
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
14991503
:c:func:`PyUnicode_AsCharmapString` or
15001504
:c:func:`PyUnicode_AsEncodedString`.
@@ -1526,7 +1530,7 @@ The following codec API is special in that maps Unicode to Unicode.
15261530
character *mapping* table to it and return the resulting Unicode object.
15271531
Return ``NULL`` when an exception was raised by the codec.
15281532
1529-
.. deprecated-removed:: 3.3 4.0
1533+
.. deprecated-removed:: 3.3 3.11
15301534
Part of the old-style :c:type:`Py_UNICODE` API; please migrate to using
15311535
:c:func:`PyUnicode_Translate`. or :ref:`generic codec based API
15321536
<codec-registry>`

0 commit comments

Comments
 (0)