Message391415
Let's leave the example as-is. The principal use case for these objects is to pass them into other APIs that require file-like objects. Those can't always be put in a context manager. For this example, we mainly want to communicate that getvalue() must be called before the object is closed. The current form communicates that clearly.
Thanks for the suggestion. |
|
Date |
User |
Action |
Args |
2021-04-19 23:25:56 | rhettinger | set | recipients:
+ rhettinger, benjamin.peterson, stutzbach, docs@python, John Hagen |
2021-04-19 23:25:56 | rhettinger | set | messageid: <1618874756.12.0.297470969409.issue43834@roundup.psfhosted.org> |
2021-04-19 23:25:56 | rhettinger | link | issue43834 messages |
2021-04-19 23:25:56 | rhettinger | create | |
|