<p dir="ltr"><br>
On 30 May 2013 06:25, "Brett Cannon" <<a href="mailto:brett@python.org">brett@python.org</a>> wrote:<br>
><br>
> On Wed, May 29, 2013 at 2:56 PM, R. David Murray <<a href="mailto:rdmurray@bitdance.com">rdmurray@bitdance.com</a>> wrote:<br>
> > On Wed, 29 May 2013 20:10:44 +0200, Antoine Pitrou <<a href="mailto:solipsis@pitrou.net">solipsis@pitrou.net</a>> wrote:<br>
> >> On Wed, 29 May 2013 12:55:01 -0400<br>
> >> Brett Cannon <<a href="mailto:brett@python.org">brett@python.org</a>> wrote:<br>
> >> > > Perhaps 'managed_module'?<br>
> >> ><br>
> >> > managed_module is better than managed_initialization.<br>
> >><br>
> >> I don't understand how it's "managed". "manage", "manager", etc. is the<br>
> >> kind of dumb words everybody uses when they don't manage (!) to explain<br>
> >> what they're talking about.<br>
> >><br>
> >> My vote is for "module_to_init", "uninitialized_module",<br>
> >> "pristine_module", etc.<br>
><br>
> I don't like unititionalized_module or pristine_module as that isn't<br>
> guaranteed thanks to reloading; seems misleading.<br>
><br>
> ><br>
> > Actually, you are right, 'managed_module' isn't much if any better<br>
> > than those.<br>
> ><br>
> > Our problem is that there are two concepts we are trying to cram into<br>
> > one name: what the context manager is managing, and the object that the<br>
> > context manager gives you on entry to the with block.  There probably<br>
> > isn't a good answer.<br>
> ><br>
> > I suppose that one approach would be to have a module_initializer context<br>
> > manager return self and then separately call a method on it it to actually<br>
> > load the module inside the with body.  But adding more typing to solve<br>
> > a naming issue seems...odd.<br>
><br>
> That would make me feel icky, so I won't do it.<br>
><br>
> So module_to_init it is unless someone can convince me the bikeshed is<br>
> a different colour.</p>
<p dir="ltr">+1 to that bikeshed colour. It covers what we're returning (a module) and what we plan to do with it that needs a with statement (initialising it).</p>
<p dir="ltr">Cheers,<br>
Nick.</p>
<p dir="ltr">> _______________________________________________<br>
> Python-Dev mailing list<br>
> <a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
> <a href="http://mail.python.org/mailman/listinfo/python-dev">http://mail.python.org/mailman/listinfo/python-dev</a><br>
> Unsubscribe: <a href="http://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com">http://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com</a><br>
</p>