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 vstinner
Recipients Mark.Shannon, kj, ronaldoussoren, serhiy.storchaka, shihai1991, vstinner
Date 2020-11-11.00:34:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1605054843.36.0.238911554089.issue42294@roundup.psfhosted.org>
In-reply-to
Content
In bpo-1635741, I added PyModule_AddObjectRef() (commit 8021875bbcf7385e651def51bc597472a569042c):
https://docs.python.org/dev/c-api/module.html#c.PyModule_AddObjectRef

"Similar to PyModule_AddObject() but don't steal a reference to the value on success."

I was tired of bugs caused by misusage of the surprising PyModule_AddObject() API.

PyModule_AddObject() *is* useful in some cases, but it is confusing in most cases...
History
Date User Action Args
2020-11-11 00:34:03vstinnersetrecipients: + vstinner, ronaldoussoren, Mark.Shannon, serhiy.storchaka, shihai1991, kj
2020-11-11 00:34:03vstinnersetmessageid: <1605054843.36.0.238911554089.issue42294@roundup.psfhosted.org>
2020-11-11 00:34:03vstinnerlinkissue42294 messages
2020-11-11 00:34:03vstinnercreate