Message213739
> olditem is not useful
It is. Py_XDECREF() may have massive side effects (such as calling a __del__ method and executing arbitrary code). Therefore, you have to ensure that the tuple item is set to the new value *before* the old value is DECREF'ed. Otherwise, any code invoked by Py_XDECREF will see invalid tuple contents, and the interpreter may crash. |
|
Date |
User |
Action |
Args |
2014-03-16 17:15:22 | pitrou | set | recipients:
+ pitrou, ezio.melotti, maliubiao@gmail.com |
2014-03-16 17:15:22 | pitrou | set | messageid: <1394990122.25.0.235866092065.issue20945@psf.upfronthosting.co.za> |
2014-03-16 17:15:22 | pitrou | link | issue20945 messages |
2014-03-16 17:15:21 | pitrou | create | |
|