This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author petr.viktorin
Recipients petr.viktorin, serhiy.storchaka, skrah
Date 2021-08-17.14:14:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Since, there is PyModule_AddObjectRef doesn't steal a reference.
PyModule_AddObject is discouraged in the docs, but not formally deprecated. (As Stefan notes, the leaks are single references in case of a module initialization failure -- the cost of using the API incorrectly is very small; requiring everyone to change their code because it was possible to misuse it is overkill.)


I think this is enough to close the issue.
Date User Action Args
2021-08-17 14:14:27petr.viktorinsetrecipients: + petr.viktorin, skrah, serhiy.storchaka
2021-08-17 14:14:27petr.viktorinsetmessageid: <>
2021-08-17 14:14:27petr.viktorinlinkissue26871 messages
2021-08-17 14:14:27petr.viktorincreate