Antoine Pitrou <pit...@free.fr> added the comment: > But won't self->args point to a broken object while any callbacks triggered > by Py_XDECREF() are run? > > An alternative would be > > tmp = self->args; > self->args = args; > Py_INCREF(self->args); > Py_XDECREF(tmp);
You are right, that's better. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1692335> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com