Thanks to visit codestin.com Credit goes to github.com
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 0a863da commit 729eca1Copy full SHA for 729eca1
1 file changed
Doc/tools/anno-api.py
@@ -49,7 +49,11 @@ def main():
49
sys.stderr.write("No refcount data for %s\n" % s)
50
else:
51
if info.result_type == "PyObject*":
52
- rc = info.result_refs and "New" or "Borrowed"
+ if info.result_refs is None:
53
+ rc = "Always \NULL{}"
54
+ else:
55
+ rc = info.result_refs and "New" or "Borrowed"
56
+ rc = rc + " reference"
57
line = r"\begin{cfuncdesc}[%s]{PyObject*}{" % rc \
58
+ line[prefix_len:]
59
output.write(line)
0 commit comments