Nick Coghlan <ncogh...@gmail.com> added the comment:

FWIW, it's likely I'll be adding contextlib.ContextStack (see [1]) for 3.3. 
While it's far from the primary use case, that API also serves as a "no-op" 
context manager (if you never register any contexts or callbacks, the __exit__ 
impl does nothing).

[1] 
http://contextlib2.readthedocs.org/en/latest/index.html#contextlib2.ContextStack

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10049>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to