[IronPython] atexit module doesn't work

Sanghyeon Seo sanxiyn at gmail.com
Sat Mar 11 17:00:43 CET 2006


IronPython 1.0.2258 (Beta) on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import sys, atexit
>>> def bye():
...     print 'Bye!'
...
>>> atexit.register(bye)
>>> sys.exit()

This should print 'Bye!' at exit.

Seo Sanghyeon



More information about the Ironpython-users mailing list