[issue29692] contextlib.contextmanager may incorrectly unchain RuntimeError

Raymond Hettinger report at bugs.python.org
Wed Apr 5 11:30:39 EDT 2017


Raymond Hettinger added the comment:

PEP 8's rule makes sense elsewhere, but for context managers I think an implicit return None is the norm and that making it explicit wouldn't improve readability.

----------
nosy: +rhettinger

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


More information about the Python-bugs-list mailing list