Skip to content

Commit ac281e2

Browse files
committed
Add PyCell_GET/SET to howto docs.
1 parent 76190ad commit ac281e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/howto/free-threading-extensions.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ that return :term:`strong references <strong reference>`.
167167
+-----------------------------------+-----------------------------------+
168168
| :c:func:`PyImport_AddModule` | :c:func:`PyImport_AddModuleRef` |
169169
+-----------------------------------+-----------------------------------+
170+
| :c:func:`PyCell_GET` | :c:func:`PyCell_Get` |
171+
+-----------------------------------+-----------------------------------+
172+
| :c:func:`PyCell_SET` | :c:func:`PyCell_Set` |
173+
+-----------------------------------+-----------------------------------+
170174

171175
Not all APIs that return borrowed references are problematic. For
172176
example, :c:func:`PyTuple_GetItem` is safe because tuples are immutable.

0 commit comments

Comments
 (0)