Message356765
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;
} |
|
Date |
User |
Action |
Args |
2019-11-16 19:37:20 | brandtbucher | set | recipients:
+ brandtbucher |
2019-11-16 19:37:20 | brandtbucher | set | messageid: <1573933040.11.0.59069542647.issue38823@roundup.psfhosted.org> |
2019-11-16 19:37:20 | brandtbucher | link | issue38823 messages |
2019-11-16 19:37:19 | brandtbucher | create | |
|