Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Doc/c-api/unicode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,27 @@ Python:
.. versionadded:: 3.3


The structure of a particular object can be determined using the following
macros.
The macros cannot fail; their behavior is undefined if their argument
is not a Python Unicode object.

.. c:namespace:: NULL

.. c:macro:: PyUnicode_IS_COMPACT(o)

True if *o* uses the :c:struct:`PyCompactUnicodeObject` structure.

.. versionadded:: 3.3


.. c:macro:: PyUnicode_IS_COMPACT_ASCII(o)

True if *o* uses the :c:struct:`PyASCIIObject` structure.

.. versionadded:: 3.3


The following APIs are C macros and static inlined functions for fast checks and
access to internal read-only data of Unicode objects:

Expand Down
2 changes: 1 addition & 1 deletion Tools/check-c-api-docs/ignored_c_api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,4 @@ PY_MONITORING_EVENT_BRANCH
PY_DEF_EVENT
PY_FOREACH_DICT_EVENT
# cpython/pystats.h
PYSTATS_MAX_UOP_ID
PYSTATS_MAX_UOP_ID
Loading