Ezio Melotti <[email protected]> added the comment:

If you want to call .close() automatically on something you can use 
contextlib.closing(): 
http://docs.python.org/library/contextlib.html#contextlib.closing

----------
nosy: +ezio.melotti

_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue13814>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to