[Python-3000] Removing sys.exitfunc (original) (raw)
Guido van Rossum guido at python.org
Fri Mar 9 04:09:25 CET 2007
- Previous message: [Python-3000] Removing sys.exitfunc
- Next message: [Python-3000] Removing sys.exitfunc
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Rename it to sys._exitfunc?
On 3/8/07, Collin Winter <collinw at gmail.com> wrote:
I was revisiting my patch on SF to remove sys.exitfunc (per PEP 3100), and I found some usages in the stdlib I had missed the first time around. One of these, I was surprised to learn, is atexit.py; in fact, atexit is implemented in terms of sys.exitfunc. This was especially shocking because PEP 3100 cites that you should "use [the] atexit module instead" of sys.exitfunc as an argument for the latter's deletion.
Suggestions, anyone, on how to remove sys.exitfunc and keep atexit working? My own would be to replace atexit.py with a C module that allows manipulation of the exitfuncs array in Python/pythonrun.c (or something similar). Collin Winter
Python-3000 mailing list Python-3000 at python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/guido%40python.org
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-3000] Removing sys.exitfunc
- Next message: [Python-3000] Removing sys.exitfunc
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]