On Wed, May 29, 2013 at 10:14 AM, Brett Cannon <[email protected]> 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 | [email protected] | Brisbane, Australia
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com