[Python-Dev] Py_CLEAR to avoid crashes
Nick Coghlan
ncoghlan at gmail.com
Sun Feb 17 08:02:42 CET 2008
Brett Cannon wrote:
> On Feb 16, 2008 3:12 PM, Amaury Forgeot d'Arc <amauryfa at gmail.com> wrote:
>> Is there a clever way to prevent these problems globally, for example
>> by delaying finalizers "just a little"?
>
> Beats me.
Finalizers can be delayed 'just a little' with a macro called Py_CLEAR ;)
(in other words, what Amaury is doing already is the best solution I am
aware of)
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
More information about the Python-Dev
mailing list