Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8394595

Browse files
committed
Add to the comment a description of the "null" value for returned
PyObject* values.
1 parent c2578c5 commit 8394595

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Doc/api/refcounts.dat

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
# Refcount behavior is given for all PyObject* types: 0 (no change), +1
1717
# (increment) and -1 (decrement). A blank refcount field indicates the
1818
# parameter or function value is not a PyObject* and is therefore not
19-
# subject to reference counting.
19+
# subject to reference counting. A special case for the value "null"
20+
# (without quotes) is used for functions which return a PyObject* type but
21+
# always return NULL. This is used by some of the PyErr_*() functions, in
22+
# particular.
2023

2124
# The parameter names are as they appear in the API manual, not the source
2225
# code.

0 commit comments

Comments
 (0)