R. David Murray <rdmur...@bitdance.com> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11767>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to