This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, belopolsky, meador.inge, rfk
Date 2011-09-12.16:07:58
SpamBayes Score 0.0002580696
Marked as misclassified No
Message-id <1315843679.58.0.959452979936.issue12483@psf.upfronthosting.co.za>
In-reply-to
Content
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")
History
Date User Action Args
2011-09-12 16:07:59amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, belopolsky, rfk, meador.inge
2011-09-12 16:07:59amaury.forgeotdarcsetmessageid: <1315843679.58.0.959452979936.issue12483@psf.upfronthosting.co.za>
2011-09-12 16:07:59amaury.forgeotdarclinkissue12483 messages
2011-09-12 16:07:58amaury.forgeotdarccreate