Message166601
> 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. |
|
Date |
User |
Action |
Args |
2012-07-27 19:12:29 | pitrou | set | recipients:
+ pitrou, gvanrossum, loewis, nnorwitz, brett.cannon, georg.brandl, facundobatista, jafo, ehuss, tseaver, jaraco, belopolsky, zseil, fmitha, vstinner, taleinat, alexandre.vassalotti, benjamin.peterson, jarpa, bpb, zbysz, kylev, lukasz.langa, sbt |
2012-07-27 19:12:28 | pitrou | link | issue1692335 messages |
2012-07-27 19:12:28 | pitrou | create | |
|