From c331d011258f2c7c271a7b07f34f445f870c7ad8 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Tue, 29 Apr 2025 13:23:06 +0100 Subject: [PATCH] gh-46236: Document `PyUnicodeIter_Type` (GH-132925) (cherry picked from commit bba14c3e0129dc6c36c304018ab60a5580043f55) # Conflicts: # Doc/c-api/unicode.rst --- Doc/c-api/unicode.rst | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst index d9b6b1f8b93b31..7baf8de10c8175 100644 --- a/Doc/c-api/unicode.rst +++ b/Doc/c-api/unicode.rst @@ -68,8 +68,14 @@ Python: .. c:var:: PyTypeObject PyUnicode_Type - This instance of :c:type:`PyTypeObject` represents the Python Unicode type. It - is exposed to Python code as ``str``. + This instance of :c:type:`PyTypeObject` represents the Python Unicode type. + It is exposed to Python code as ``str``. + + +.. c:var:: PyTypeObject PyUnicodeIter_Type + + This instance of :c:type:`PyTypeObject` represents the Python Unicode + iterator type. It is used to iterate over Unicode string objects. The following APIs are C macros and static inlined functions for fast checks and