STINNER Victor <vstin...@python.org> added the comment:

I added a new PyModule_AddObjectRef() function which does not steal a reference 
to the value on success. I suggest to use this new function instead of 
PyModule_AddObject() which is usually misused (creating reference leaks).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue1635741>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to