Message143916
I was going to say that the patch has no visible effect, since PyObject_GC_Del() calls something which has the same effect as PyObject_GC_Untrack...
But the following code crashes the interpreter! And of course the patch fixes it...
import ctypes, gc
class Nasty:
def __del__(self):
gc.collect()
ctypes.CFUNCTYPE(None)(lambda x=Nasty(): None)
print("OK") |
|
Date |
User |
Action |
Args |
2011-09-12 16:07:59 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, belopolsky, rfk, meador.inge |
2011-09-12 16:07:59 | amaury.forgeotdarc | set | messageid: <1315843679.58.0.959452979936.issue12483@psf.upfronthosting.co.za> |
2011-09-12 16:07:59 | amaury.forgeotdarc | link | issue12483 messages |
2011-09-12 16:07:58 | amaury.forgeotdarc | create | |
|