On Thu, Nov 13, 2014 at 2:33 PM, Ian Kelly <ian.g.ke...@gmail.com> wrote: > ... other things decorated with atexit.register > might actually be called before the main function
I don't think that will happen. The atexit module is documented to execute its exit functions in reverse order. What's not documented is the behavior of calling atexit.register() while atexit._run_exitfuncs is running. That's an implementation detail, and though unlikely to change, it might be worthwhile getting that behavior documented. Skip -- https://mail.python.org/mailman/listinfo/python-list