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/126616.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 16:59:02 CEST 2013
On Thu, May 30, 2013 at 12:47 AM, Brett Cannon <brett at python.org> wrote:
> I am willing to compromise to module_to_initialize, module_to_init, or
> module_to_load. Pick one. =)

I see this as *really* similar to a database transaction, and those
start with "session.begin()".

Could you tolerate "with begin_module_init(name) as m:"?

We could even document the ability to check m.__initializing__ to see
whether this is a reload() or not.

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