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/2013-May/126608.html below:

[Python-Dev] cpython: Introduce importlib.util.ModuleManager which is a context manager to

[Python-Dev] cpython: Introduce importlib.util.ModuleManager which is a context manager to [Python-Dev] cpython: Introduce importlib.util.ModuleManager which is a context manager toNick Coghlan ncoghlan at gmail.com
Wed May 29 07:09:15 CEST 2013
On Wed, May 29, 2013 at 10:14 AM, Brett Cannon <brett at python.org> wrote:
>> (FWIW, I think "ModuleManager" is a rather bad name :-)
>
> I'm open to suggestions, but the thing does manage the module so it at
> least makes sense.

I suggest ModuleInitialiser as the CM name, with a helper function to
make usage read better:

    with initialise_module(name) as m:
        # Module initialisation code goes here
        # Module is rolled back if initialisation fails

Cheers,
Nick.

--
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
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