[issue32158] Suppress (and other contextlib context managers) should work as decorators (where appropriate)

R. David Murray report at bugs.python.org
Fri Feb 9 14:33:23 EST 2018


R. David Murray <rdmurray at bitdance.com> added the comment:

The designed use case of suppress is to cover a *single line* of python code.  It should *not* be a decorator.

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32158>
_______________________________________


More information about the Python-bugs-list mailing list