[Python-Dev] Must objects with enter/exit also supply context? (original) (raw)
Guido van Rossum guido at python.org
Fri Apr 28 02:20:21 CEST 2006
- Previous message: [Python-Dev] Must objects with __enter__/__exit__ also supply __context__?
- Next message: [Python-Dev] Visual studio 2005 express now free
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
+1 from me too.
On 4/27/06, Edward Loper <edloper at gradient.cis.upenn.edu> wrote:
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 at python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] Must objects with __enter__/__exit__ also supply __context__?
- Next message: [Python-Dev] Visual studio 2005 express now free
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]