Message133256
Ah, that's exactly why I suggested using the 'closing' context manager from contextlib. That context manager returns the object passed to it, and then when its __exit__ method is called, calls the close method of that object that was passed to it. |
|
| Date |
User |
Action |
Args |
| 2011-04-07 20:49:38 | r.david.murray | set | recipients:
+ r.david.murray, gruszczy, moyix |
| 2011-04-07 20:49:38 | r.david.murray | set | messageid: <[email protected]> |
| 2011-04-07 20:49:38 | r.david.murray | link | issue11767 messages |
| 2011-04-07 20:49:38 | r.david.murray | create | |
|