消息 [166601]
> 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. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2012-07-27 19:12:29 | pitrou | 修改 | 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 | 链接 | issue1692335 messages |
| 2012-07-27 19:12:28 | pitrou | 创建 | |
|