Documentation bug on http://docs.python.org/library/atexit.html
Hi. I'm looking at the documentation for the "atexit" module and it has an inconsistency The first paragraph says "The order in which the functions are called is not defined". However, the second pargaraph at http://docs.python.org/library/atexit.html#atexit.register says "At normal program termination (for instance, if sys.exit() is called or the main module’s execution completes), all functions registered are called in last in, first out order." which contradicts the first paragraph stating that order is not defined. I'd suggest a fix if I knew which one was right :) Regards, D.
On 18.06.2012 20:28, Daniel Moisset wrote:
Hi. I'm looking at the documentation for the "atexit" module and it has an inconsistency
The first paragraph says "The order in which the functions are called is not defined". However, the second pargaraph at http://docs.python.org/library/atexit.html#atexit.register says "At normal program termination (for instance, if sys.exit() is called or the main module’s execution completes), all functions registered are called in last in, first out order." which contradicts the first paragraph stating that order is not defined.
I'd suggest a fix if I knew which one was right :)
Hi Daniel, that's a good point; I've raised bugs.python.org/15233 to track it. cheers, Georg
participants (2)
-
Daniel Moisset
-
Georg Brandl