0
0
mirror of https://github.com/python/cpython.git synced 2024-11-28 08:20:55 +01: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:
Serhiy Storchaka 2018-12-20 09:33:58 +02:00 committed by GitHub
parent 87ec1104b3
commit 83dd4e87a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1207 additions and 333 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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.'