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 brandtbucher
Recipients brandtbucher
Date 2019-11-16.19:37:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1573933040.11.0.59069542647.issue38823@roundup.psfhosted.org>
In-reply-to
Content
How do others feel about the creation of a new private API? It would keep these diffs smaller and ease refactoring... and it would probably be good to have around anyways:

/* Like PyModule_AddObject, but steals o on success AND failure. */

int
_PyModule_StealObject(PyObject *m, const char *name, PyObject *o)
{
    if (PyModule_AddObject(m, name, o) < 0) {
        Py_XDECREF(o);
        return -1;
    }
    return 0;
}
History
Date User Action Args
2019-11-16 19:37:20brandtbuchersetrecipients: + brandtbucher
2019-11-16 19:37:20brandtbuchersetmessageid: <1573933040.11.0.59069542647.issue38823@roundup.psfhosted.org>
2019-11-16 19:37:20brandtbucherlinkissue38823 messages
2019-11-16 19:37:19brandtbuchercreate