[Python-Dev] cpython: Introduce importlib.util.ModuleManager which is a context manager to
Antoine Pitrou
solipsis at pitrou.net
Tue May 28 23:40:38 CEST 2013
More information about the Python-Dev mailing list
Tue May 28 23:40:38 CEST 2013
- Previous message: [Python-Dev] pep 422 "Safe object finalization" question: why break weakrefs first?
- Next message: [Python-Dev] cpython: Introduce importlib.util.ModuleManager which is a context manager to
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, 28 May 2013 23:29:46 +0200 (CEST) brett.cannon <python-checkins at python.org> wrote: > > +.. class:: ModuleManager(name) > + > + A :term:`context manager` which provides the module to load. The module will > + either come from :attr:`sys.modules` in the case of reloading or a fresh > + module if loading a new module. Proper cleanup of :attr:`sys.modules` occurs > + if the module was new and an exception was raised. What use case does this API solve? (FWIW, I think "ModuleManager" is a rather bad name :-)) Regards Antoine.
- Previous message: [Python-Dev] pep 422 "Safe object finalization" question: why break weakrefs first?
- 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