Message316416
The current example for contextlib.contextmanager doesn't use try/finally, which sets folks up for writing resource management context managers that don't clean up after exceptions properly.
There's an example with try/finally down in the contextlib.closing docs, but I'm thinking it would be worthwhile to change the presentation of contextmanager itself. |
|
Date |
User |
Action |
Args |
2018-05-11 22:31:27 | ncoghlan | set | recipients:
+ ncoghlan |
2018-05-11 22:31:27 | ncoghlan | set | messageid: <1526077887.55.0.682650639539.issue33468@psf.upfronthosting.co.za> |
2018-05-11 22:31:27 | ncoghlan | link | issue33468 messages |
2018-05-11 22:31:27 | ncoghlan | create | |
|