Message230185
| Author |
abarnert |
| Recipients |
abarnert, docs@python, mjpieters |
| Date |
2014年10月28日.23:02:16 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1414537336.35.0.681459274445.issue22755@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
It may be pretty hard to come up with a good example for closing in the stdlib that shouldn't just be turned into a context manager...
There are some types where using it in a with statement is sensible, but unusual enough that you might want to make it explicit (maybe logging.Handler?), but does that make a good example? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年10月28日 23:02:16 | abarnert | set | recipients:
+ abarnert, mjpieters, docs@python |
| 2014年10月28日 23:02:16 | abarnert | set | messageid: <1414537336.35.0.681459274445.issue22755@psf.upfronthosting.co.za> |
| 2014年10月28日 23:02:16 | abarnert | link | issue22755 messages |
| 2014年10月28日 23:02:16 | abarnert | create |
|