[BangPypers] How to run a block of code just before the interpreter is being exited like END{} in perl ??
venkatakrishnan g
superpulse.x at gmail.com
Mon Sep 2 16:39:01 CEST 2013
import atexit
def callback():
print "about to exit!"
atexit.register( callback )
On 2 September 2013 20:00, babmis <babmis at outlook.com> wrote:
>
> ______________________________**_________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/**mailman/listinfo/bangpypers<http://mail.python.org/mailman/listinfo/bangpypers>
>
More information about the BangPypers
mailing list