[Python-checkins] gh-92536: Doc update about Py_UNICODE removal (GH-92756)
methane
webhook-mailer at python.org
Fri May 13 00:15:51 EDT 2022
https://github.com/python/cpython/commit/e371d5d5d125b0acdde2791d88562338a7359500
commit: e371d5d5d125b0acdde2791d88562338a7359500
branch: main
author: Inada Naoki <songofacandy at gmail.com>
committer: methane <songofacandy at gmail.com>
date: 2022-05-13T13:15:41+09:00
summary:
gh-92536: Doc update about Py_UNICODE removal (GH-92756)
files:
M Doc/c-api/arg.rst
M Doc/c-api/unicode.rst
diff --git a/Doc/c-api/arg.rst b/Doc/c-api/arg.rst
index 6d0ad395540aa..d9cabf90f8e29 100644
--- a/Doc/c-api/arg.rst
+++ b/Doc/c-api/arg.rst
@@ -206,8 +206,8 @@ which disallows mutable objects such as :class:`bytearray`.
encoding passed in as parameter.
.. versionchanged:: 3.12
- ``u``, ``u#``, ``Z``, and ``Z#`` are removed because they used legacy ``Py_UNICODE*``
- representation.
+ ``u``, ``u#``, ``Z``, and ``Z#`` are removed because they used a legacy
+ ``Py_UNICODE*`` representation.
Numbers
diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst
index 8fab3b7258276..6acd7ba790842 100644
--- a/Doc/c-api/unicode.rst
+++ b/Doc/c-api/unicode.rst
@@ -92,7 +92,7 @@ access to internal read-only data of Unicode objects:
.. versionadded:: 3.3
.. deprecated:: 3.10
- This API do nothing since Python 3.12. Please remove code using this function.
+ This API does nothing since Python 3.12.
.. c:function:: Py_ssize_t PyUnicode_GET_LENGTH(PyObject *o)
More information about the Python-checkins
mailing list