Message320367
| Author |
ncoghlan |
| Recipients |
ncoghlan, petr.viktorin, serhiy.storchaka, taleinat |
| Date |
2018年06月24日.09:05:59 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1529831160.15.0.56676864532.issue33468@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Similar to closing, we have dedicated context managers for stdout and stderr redirection now: https://docs.python.org/3/library/contextlib.html#contextlib.redirect_stdout
Redirecting stdin could be a good example though, since we've so far chosen not to provide a standard context manager for that (it's a sufficiently uncommon use case that we haven't seen the need to add it directly). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2018年06月24日 09:06:00 | ncoghlan | set | recipients:
+ ncoghlan, taleinat, petr.viktorin, serhiy.storchaka |
| 2018年06月24日 09:06:00 | ncoghlan | set | messageid: <1529831160.15.0.56676864532.issue33468@psf.upfronthosting.co.za> |
| 2018年06月24日 09:06:00 | ncoghlan | link | issue33468 messages |
| 2018年06月24日 09:06:00 | ncoghlan | create |
|