Skip to content

Commit 6815686

Browse files
committed
fix 2 unicode
1 parent 26e9725 commit 6815686

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Doc/c-api/unicode.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,16 @@ access to internal read-only data of Unicode objects:
132132
.. c:macro:: PyUnicode_IS_COMPACT(o)
133133
134134
Return true if the Unicode object *o* is a compact string.
135-
Compact strings use a single memory block for
136-
the structure and the character data.
135+
Compact strings use the :c:struct:`PyCompactUnicodeObject` structure.
136+
137137
.. versionadded:: 3.3
138138
139139
140140
.. c:macro:: PyUnicode_IS_COMPACT_ASCII(o)
141141
142142
Return true if the Unicode object *o* is a compact ASCII string.
143-
A compact ASCII string uses a single memory block
144-
and contains only ASCII characters.
143+
Compact ASCII strings use the :c:struct:`PyASCIIObject` structure.
144+
145145
.. versionadded:: 3.3
146146
147147

Tools/check-c-api-docs/ignored_c_api.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,4 @@ PyUnstable_EXECUTABLE_KIND_SKIP
8989
# cpython/pylifecycle.h
9090
Py_FrozenMain
9191
# cpython/unicodeobject.h
92-
PyUnicode_IS_COMPACT
93-
PyUnicode_IS_COMPACT_ASCII
92+

0 commit comments

Comments
 (0)