This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ethan.furman
Recipients docs@python, ethan.furman, martin.panter, skip.montanaro
Date 2014-11-19.05:08:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1416373700.52.0.791964052479.issue22867@psf.upfronthosting.co.za>
In-reply-to
Content
From a post by Ian Kelly (https://mail.python.org/pipermail/python-list/2014-November/681073.html)
--------------------------------------------------------------
In fact it seems the behavior does differ between Python 2.7 and Python 3.4:

$ cat testatexit.py
import atexit

@atexit.register
def main():
  atexit.register(goodbye)

@atexit.register
def goodbye():
  print("Goodbye")
$ python2 testatexit.py
Goodbye
Goodbye
$ python3 testatexit.py
Goodbye
History
Date User Action Args
2014-11-19 05:08:20ethan.furmansetrecipients: + ethan.furman, skip.montanaro, docs@python, martin.panter
2014-11-19 05:08:20ethan.furmansetmessageid: <1416373700.52.0.791964052479.issue22867@psf.upfronthosting.co.za>
2014-11-19 05:08:20ethan.furmanlinkissue22867 messages
2014-11-19 05:08:19ethan.furmancreate