"Baptiste Carvello" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>+1 for context maker.

[me, Terry]
>> I would call the decorator @contextmaker since that is what it turns the 
>>  >> decorated function into.

>I'm confused here. Do we agree that the object with __enter__ and 
> >__exit__ is a context manager,

I believe so, either that or, for short, context

>and the object with just __context__ is a context maker ?

If that is what goes after 'with', yes.

>If so , I would say the decorator still produces a context manager.

If I misunderstood what the decorator produces, then @contextmaker would be 
wrong.  Actually, I thought there were possibly two decorators under 
consideration, one for each.

Terry Jan Reedy


Baptiste

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/python-python-dev%40m.gmane.org



_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to