[issue11654] errors in atexit hooks don't change process exit code

Antoine Pitrou report at bugs.python.org
Wed Mar 23 21:26:57 CET 2011


New submission from Antoine Pitrou <pitrou at free.fr>:

Not sure if it's the desired behaviour, so I'm reporting it:

$ ./python -c "import atexit; atexit.register(lambda: 1/0)" && echo success
Error in atexit._run_exitfuncs:
ZeroDivisionError: division by zero
[36956 refs]
success

----------
components: Interpreter Core
messages: 131916
nosy: pitrou
priority: normal
severity: normal
status: open
title: errors in atexit hooks don't change process exit code
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3

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


More information about the Python-bugs-list mailing list