[issue22755] contextlib.closing documentation should use a new example

Martin Panter report at bugs.python.org
Wed Oct 29 00:07:44 CET 2014


Martin Panter added the comment:

One exception that comes to mind is generators. According to Issue 13814, it is deliberate that you have to call close(), so perhaps someone could come up with an example based on that.

----------
nosy: +vadmium

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22755>
_______________________________________


More information about the Python-bugs-list mailing list