[issue10093] Warn when files are not explicitly closed

Antoine Pitrou report at bugs.python.org
Thu Oct 14 01:53:28 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

> If the warnings are emitted as usual with the warnings module, you can 
> use -W to control this.

Right. Perhaps we can add a new warning category (e.g. ResourceWarning), or simply reuse RuntimeWarning.

----------

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


More information about the Python-bugs-list mailing list