[New-bugs-announce] [issue10046] Correction to atexit documentation
report at bugs.python.org
Thu Oct 7 23:34:55 CEST 2010
New submission from Jason Baker <amnorvend at gmail.com>:
There's an issue with the documentation on the atexit module. It states:
"Note: the functions registered via this module are not called when the program is killed by a signal, when a Python fatal internal error is detected, or when os._exit() is called."
This isn't necessarily true. For instance, if I start the following script:
from atexit import register
from time import sleep
...and then do a "kill -SIGINT <pid>", the atexit function gets called. It would be helpful to have a more detailed description of the rules on how this works.
assignee: docs at python
nosy: Jason.Baker, docs at python
title: Correction to atexit documentation
versions: Python 2.7
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce