[issue10049] Add a "no-op" (null) context manager to contextlib

Nick Coghlan report at bugs.python.org
Sun Oct 24 15:52:36 CEST 2010


Nick Coghlan <ncoghlan at gmail.com> added the comment:

I find Raymond's perspective persuasive in this case. Feel free to post either the original idea or my later variant as an ASPN cookbook recipe. (you could actually combine the two, and use NullContext as an implementation detail of an optional_cm() function)

----------
resolution:  -> rejected
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10049>
_______________________________________


More information about the Python-bugs-list mailing list