[Python-Dev] cpython: Introduce importlib.util.ModuleManager which is a context manager to (original) (raw)
Nick Coghlan ncoghlan at gmail.com
Wed May 29 16:59:02 CEST 2013
- Previous message: [Python-Dev] cpython: Introduce importlib.util.ModuleManager which is a context manager to
- Next message: [Python-Dev] cpython: Introduce importlib.util.ModuleManager which is a context manager to
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, May 30, 2013 at 12:47 AM, Brett Cannon <brett at python.org> wrote:
I am willing to compromise to moduletoinitialize, moduletoinit, or moduletoload. 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
- Previous message: [Python-Dev] cpython: Introduce importlib.util.ModuleManager which is a context manager to
- Next message: [Python-Dev] cpython: Introduce importlib.util.ModuleManager which is a context manager to
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]