We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b9eca9 commit 8e10812Copy full SHA for 8e10812
InternalDocs/stackrefs.md
@@ -30,7 +30,8 @@ The `obj` argument must not be `NULL`.
30
Going back to `PyObject*` mirrors this:
31
32
- `PyStackRef_AsPyObjectBorrow(ref)` - borrow the underlying pointer
33
-- `PyStackRef_AsPyObjectSteal(ref)` - transfer ownership from the stackref
+- `PyStackRef_AsPyObjectSteal(ref)` - transfer ownership from the stackref; if ref is borrowed or
34
+ deferred, this creates a new owning `PyObject*` reference.
35
- `PyStackRef_AsPyObjectNew(ref)` - create a new owning reference
36
37
Only `PyStackRef_AsPyObjectBorrow` allows ref to be `PyStackRef_NULL`.
0 commit comments