summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2020-10-19 22:17:50 (GMT)
committerGitHub <noreply@github.com>2020-10-19 22:17:50 (GMT)
commit3a8fdb28794b2f19f6c8464378fb8b46bce1f5f4 (patch)
tree860c455643cb15787c0b2c4de90dec28d96f9d2e /Doc
parent4dfb190a33a1deac60306f15d52d2fe11fb93464 (diff)
downloadcpython-3a8fdb28794b2f19f6c8464378fb8b46bce1f5f4.zip
cpython-3a8fdb28794b2f19f6c8464378fb8b46bce1f5f4.tar.gz
cpython-3a8fdb28794b2f19f6c8464378fb8b46bce1f5f4.tar.bz2
bpo-41784: make PyUnicode_AsUTF8AndSize part of the limited API (GH-22252)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/unicode.rst3
-rw-r--r--Doc/whatsnew/3.10.rst4
2 files changed, 7 insertions, 0 deletions
diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst
index 5518214..54bd0a3 100644
--- a/Doc/c-api/unicode.rst
+++ b/Doc/c-api/unicode.rst
@@ -1098,6 +1098,9 @@ These are the UTF-8 codec APIs:
.. versionchanged:: 3.7
The return type is now ``const char *`` rather of ``char *``.
+ .. versionchanged:: 3.10
+ This function is a part of the :ref:`limited API <stable>`.
+
.. c:function:: const char* PyUnicode_AsUTF8(PyObject *unicode)
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index 738ef97..f57e1b4 100644
--- a/Doc/whatsnew/3.10.rst
+++ b/Doc/whatsnew/3.10.rst
@@ -323,6 +323,10 @@ New Features
sending value into iterator without raising ``StopIteration`` exception.
(Contributed by Vladimir Matveev in :issue:`41756`.)
+* Added :c:func:`PyUnicode_AsUTF8AndSize` to the limited C API.
+ (Contributed by Alex Gaynor in :issue:`41784`.)
+
+
Porting to Python 3.10
----------------------