[New-bugs-announce] [issue22531] Turn contextlib.{redirect_stdout, suppress} into ContextDecorators

Antony Lee report at bugs.python.org
Wed Oct 1 11:50:23 CEST 2014


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 <report at bugs.python.org>
<http://bugs.python.org/issue22531>
_______________________________________


More information about the New-bugs-announce mailing list