[Python-Dev] cpython: Introduce importlib.util.ModuleManager which is a context manager to
Antoine Pitrou
solipsis at pitrou.net
Wed May 29 18:04:55 CEST 2013
More information about the Python-Dev mailing list
Wed May 29 18:04:55 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 ]
Le Wed, 29 May 2013 11:58:21 -0400, "R. David Murray" <rdmurray at bitdance.com> a écrit : > On Thu, 30 May 2013 00:59:02 +1000, Nick Coghlan <ncoghlan at gmail.com> > wrote: > > 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:"? > > But for a transaction, it is 'with session', not 'with begin_session'. or "with transaction.begin()", or "with transaction.commit_on_success()", depending on the API :-) > With 'begin_module_init' I would have no idea what 'm' was. With > Brett's 'module_to_init' I have an intuitive idea about what 'm' is. Agreed. Regards Antoine.
- 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 ]
More information about the Python-Dev mailing list