[docs] [issue35475] Docs do not show PyImport_AddModuleObject() returns a borrowed reference.

Ammar Askar report at bugs.python.org
Thu Dec 13 03:04:18 EST 2018


Ammar Askar <ammar at ammaraskar.com> added the comment:

A good place to start might be to search for a function that says it returns a borrowed reference in the source tree. For example, "PyImport_AddModule" says it returns a borrowed reference. 

In the search you'll find the relevant file here:

https://github.com/python/cpython/blob/e42b705188271da108de42b55d9344642170aa2b/Doc/data/refcounts.dat#L569

----------
nosy: +ammar2

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35475>
_______________________________________


More information about the docs mailing list