[New-bugs-announce] [issue16178] atexit._run_exitfuncs should be a public API

Gregory P. Smith report at bugs.python.org
Tue Oct 9 21:02:52 CEST 2012


New submission from Gregory P. Smith:

The atexit module's _run_exitfuncs() function needs to be a public API.  In Python 2.x it was exposed through a disgusting hack as "sys.exitfunc()" that the atexit module monkeypatched into place at import time.

This monkeypatching was cleaned up in Python 3.

But it is still useful to expose this to users who need to write their own program shutdown code that ultimately calls os._exit or similar (avoiding atexit hooks that way) but also need to make sure the atexit exit functions get called.

----------
messages: 172505
nosy: gregory.p.smith
priority: normal
severity: normal
stage: needs patch
status: open
title: atexit._run_exitfuncs should be a public API
type: enhancement
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16178>
_______________________________________


More information about the New-bugs-announce mailing list