[Python-checkins] gh-105156: Update Unicode C API: remove deprecation (#105379)
vstinner
webhook-mailer at python.org
Tue Jun 6 10:42:57 EDT 2023
https://github.com/python/cpython/commit/04181965cfd3050f29d1f7fe7330ab933ab1fe21
commit: 04181965cfd3050f29d1f7fe7330ab933ab1fe21
branch: main
author: Victor Stinner <vstinner at python.org>
committer: vstinner <vstinner at python.org>
date: 2023-06-06T16:42:49+02:00
summary:
gh-105156: Update Unicode C API: remove deprecation (#105379)
_PyUnicode_ToLowercase(), _PyUnicode_ToUppercase(),
_PyUnicode_ToTitlecase() are no longer deprecated in the
documentation. It's no longer needed since they now use Py_UCS4 type,
rather than the deprecated Py_UNICODE type.
files:
M Doc/c-api/unicode.rst
diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst
index 0db052da360b..64dcea785d0c 100644
--- a/Doc/c-api/unicode.rst
+++ b/Doc/c-api/unicode.rst
@@ -272,25 +272,16 @@ These APIs can be used for fast direct character conversions:
Return the character *ch* converted to lower case.
- .. deprecated:: 3.3
- This function uses simple case mappings.
-
.. c:function:: Py_UCS4 Py_UNICODE_TOUPPER(Py_UCS4 ch)
Return the character *ch* converted to upper case.
- .. deprecated:: 3.3
- This function uses simple case mappings.
-
.. c:function:: Py_UCS4 Py_UNICODE_TOTITLE(Py_UCS4 ch)
Return the character *ch* converted to title case.
- .. deprecated:: 3.3
- This function uses simple case mappings.
-
.. c:function:: int Py_UNICODE_TODECIMAL(Py_UCS4 ch)
More information about the Python-checkins
mailing list