A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-April/118611.html below:

Protecting cleanup statements from interruptions

[Python-Dev] PEP-419: Protecting cleanup statements from interruptions [Python-Dev] PEP-419: Protecting cleanup statements from interruptionsBenjamin Peterson benjamin at python.org
Sun Apr 8 23:42:50 CEST 2012
2012/4/8 Paul Colomiets <paul at 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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4