← 输入框|bugs.python.org|刷新

➜

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.

作者 petr.viktorin
收信人 petr.viktorin, serhiy.storchaka, skrah
日期 2021-08-17.14:14:27
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1629209667.19.0.0892724449179.issue26871@roundup.psfhosted.org>
In-reply-to
内容
Since https://github.com/python/cpython/pull/23122, 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.)

See https://docs.python.org/3.10/c-api/module.html#c.PyModule_AddObjectRef

I think this is enough to close the issue.
历史
日期 用户 动作 参数
2021-08-17 14:14:27petr.viktorin修改recipients: + petr.viktorin, skrah, serhiy.storchaka
2021-08-17 14:14:27petr.viktorin修改messageid: <1629209667.19.0.0892724449179.issue26871@roundup.psfhosted.org>
2021-08-17 14:14:27petr.viktorin链接issue26871 messages
2021-08-17 14:14:27petr.viktorin创建