[issue10049] Add a "no-op" (null) context manager to contextlib
report at bugs.python.org
Fri Feb 10 14:58:30 CET 2012
Nick Coghlan <ncoghlan at gmail.com> added the comment:
FWIW, it's likely I'll be adding contextlib.ContextStack (see ) 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).
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list