[New-bugs-announce] [issue9788] atexit and execution order
Giampaolo Rodola'
report at bugs.python.org
Tue Sep 7 12:27:14 CEST 2010
New submission from Giampaolo Rodola' <g.rodola at gmail.com>:
import atexit
@atexit.register
def goodbye1():
print(1)
@atexit.register
def goodbye2():
print(2)
The code above prints:
2
1
...that is, the last registered function is executed first.
Wouldn't the contrary be better?
----------
components: Library (Lib)
messages: 115747
nosy: giampaolo.rodola
priority: normal
severity: normal
status: open
title: atexit and execution order
versions: Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9788>
_______________________________________
More information about the New-bugs-announce
mailing list