[Python-Dev] Fault handler updated, now disabled by default

Michael Foord fuzzyman at voidspace.org.uk
Fri Dec 24 13:59:41 CET 2010


On 24/12/2010 02:21, Victor Stinner wrote:
> Le jeudi 23 décembre 2010 à 21:59 +0100, Georg Brandl a écrit :
>> this thread showed that it is not at all obvious how the feature should look like
> Ok, I understand. I closed #8863 (rejected) and I created a third party
> module on the Python cheese shop:
> http://pypi.python.org/pypi/faulthandler/
>
> The module works on Linux, FreeBSD and Windows with Python 2.6
> through 3.2.
>
> A third party module can evolve faster outside Python.

I hope you will include it in 3.3 though; it is great functionality. I 
would really like to see it enabled by default as well.

It seemed from the discussion that the biggest barrier to enabling it by 
default was possible difficulties when embedding Python (multiple 
interpreters, potential conflicts with application signal handling). A 
public C-API to disable the functionality per interpreter would be one 
option for this. Another possibility would be providing a C-API to 
enable it and have the Python interpreter application call this, so that 
the functionality remains off by default for embedded interpreters but 
on for normal uses.

All the best,

Michael

> Victor
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk


-- 
http://www.voidspace.org.uk/

May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing http://www.sqlite.org/different.html



More information about the Python-Dev mailing list