Message200782
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__ |
|
Date |
User |
Action |
Args |
2013-10-21 14:00:52 | ncoghlan | set | recipients:
+ ncoghlan, larry |
2013-10-21 14:00:52 | ncoghlan | set | messageid: <1382364052.22.0.450047950138.issue19330@psf.upfronthosting.co.za> |
2013-10-21 14:00:52 | ncoghlan | link | issue19330 messages |
2013-10-21 14:00:52 | ncoghlan | create | |
|