1
1
Pending removal in Python 3.18
2
2
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3
3
4
- * Deprecated private functions (:gh: `128863 `):
4
+ * The following private functions are deprecated
5
+ and planned for removal in Python 3.18:
5
6
6
7
* :c:func: `!_PyBytes_Join `: use :c:func: `PyBytes_Join `.
7
8
* :c:func: `!_PyDict_GetItemStringWithError `: use :c:func: `PyDict_GetItemStringRef `.
8
- * :c:func: `!_PyDict_Pop() `: :c:func: `PyDict_Pop `.
9
+ * :c:func: `!_PyDict_Pop() `: use :c:func: `PyDict_Pop `.
9
10
* :c:func: `!_PyLong_Sign() `: use :c:func: `PyLong_GetSign `.
10
11
* :c:func: `!_PyLong_FromDigits ` and :c:func: `!_PyLong_New `:
11
12
use :c:func: `PyLongWriter_Create `.
@@ -31,7 +32,7 @@ Pending removal in Python 3.18
31
32
:c:func: `PyUnicodeWriter_WriteSubstring(writer, str, start, end) <PyUnicodeWriter_WriteSubstring> `.
32
33
* :c:func: `!_PyUnicodeWriter_WriteASCIIString `:
33
34
replace ``_PyUnicodeWriter_WriteASCIIString(&writer, str) `` with
34
- :c:func: `PyUnicodeWriter_WriteUTF8 (writer, str) <PyUnicodeWriter_WriteUTF8 > `.
35
+ :c:func: `PyUnicodeWriter_WriteASCII (writer, str) <PyUnicodeWriter_WriteASCII > `.
35
36
* :c:func: `!_PyUnicodeWriter_WriteLatin1String `:
36
37
replace ``_PyUnicodeWriter_WriteLatin1String(&writer, str) `` with
37
38
:c:func: `PyUnicodeWriter_WriteUTF8(writer, str) <PyUnicodeWriter_WriteUTF8> `.
@@ -41,5 +42,6 @@ Pending removal in Python 3.18
41
42
* :c:func: `!_Py_fopen_obj `: use :c:func: `Py_fopen `.
42
43
43
44
The `pythoncapi-compat project
44
- <https://github.com/python/pythoncapi-compat/> `__ can be used to get these
45
- new public functions on Python 3.13 and older.
45
+ <https://github.com/python/pythoncapi-compat/> `__ can be used to get
46
+ these new public functions on Python 3.13 and older.
47
+ (Contributed by Victor Stinner in :gh: `128863 `.)
0 commit comments