[issue26868] Document PyModule_AddObject's behavior on error

Brandt Bucher report at bugs.python.org
Fri Sep 6 11:57:27 EDT 2019


Brandt Bucher <brandtbucher at gmail.com> added the comment:

It looks like the idiom of calling PyModule_AddObject without Py_DECREF'ing on the error condition (or even checking for it at all) has spread quite a bit since this first reported. I'm preparing a PR to fix the other call sites.

----------
nosy: +brandtbucher

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


More information about the Python-bugs-list mailing list