This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients larry, ncoghlan
Date 2013-10-21.14:00:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1382364052.22.0.450047950138.issue19330@psf.upfronthosting.co.za>
In-reply-to
Content
I broke help() for instances of these context managers by trying to postpone exposing the class APIs until 3.5 (and didn't even record my full rationale, however flawed, in the associated comments).

The wrapper functions should be removed, making the classes the public implementation. I also plan to make the following changes (although I may end up moving them to separate issues):

- provide (and document) a public "target" attribute on redirect_stdout
- make redirect_stdout reentrant (and switch to ExitStack as the reusable-but-not-reentrant example)

- provide (and document) a public "exceptions" attribute on suppress
- return self from suppress.__enter__
History
Date User Action Args
2013-10-21 14:00:52ncoghlansetrecipients: + ncoghlan, larry
2013-10-21 14:00:52ncoghlansetmessageid: <1382364052.22.0.450047950138.issue19330@psf.upfronthosting.co.za>
2013-10-21 14:00:52ncoghlanlinkissue19330 messages
2013-10-21 14:00:52ncoghlancreate