2012/4/8 Paul Colomiets <p...@colomiets.name>:
> Function 'sys.setcleanuphook'
> -----------------------------
>
> A new function for the ``sys`` module is proposed.  This function sets
> a callback which is executed every time ``f_in_cleanup`` becomes
> false.  Callbacks get a frame object as their sole argument, so that
> they can figure out where they are called from.

Calling a function every time you leave a finally block? Isn't that a
bit expensive?


-- 
Regards,
Benjamin
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to