New submission from Antony Lee:
A small lib improvement suggestion could be to make contextlib.redirect_stdout
and contextlib.suppress inherit from ContextDecorator.
As a side note, the source of contextlib has some classes inheriting explicitly
from object while others don't, so perhaps this can be harmonized at the same
time.
----------
components: Library (Lib)
messages: 228065
nosy: Antony.Lee
priority: normal
severity: normal
status: open
title: Turn contextlib.{redirect_stdout,suppress} into ContextDecorators
versions: Python 3.4, Python 3.5
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue22531>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com