Nick Coghlan wrote:
> OTOH, if the two protocols are made orthogonal, then it's clear that the 
> manager is always the original object with the __context__ method. Then the 
> three cases are:
> 
>   - a pure context manager (only provides __context__)
>   - a pure managed context (only provides __enter__/__exit__)
>   - a managed context which can be its own context manager (provides all 
> three) 

+1 on keeping the two protocols orthogonal and using this terminology 
(context manager/managed context).

-Edward
_______________________________________________
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