mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-18085: Update refcounts.dat. (GH-11247)
Fixed some errors in refcounts.dat, remove functions removed in Python 3, and add more entries for documented functions. This will add several automatically generated notes about return values.
This commit is contained in:
parent
87ec1104b3
commit
83dd4e87a6
2 changed files with 1207 additions and 333 deletions
|
@ -87,7 +87,7 @@ class Annotations(dict):
|
|||
entry = self.get(name)
|
||||
if not entry:
|
||||
continue
|
||||
elif entry.result_type not in ("PyObject*", "PyVarObject*"):
|
||||
elif not entry.result_type.endswith("Object*"):
|
||||
continue
|
||||
if entry.result_refs is None:
|
||||
rc = 'Return value: Always NULL.'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue