[issue10093] Warn when files are not explicitly closed
Antoine Pitrou
report at bugs.python.org
Thu Oct 14 11:03:24 CEST 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
There is a slight issue with warnings, and that's the filtering by module/location. Since these warnings will occur in destructors, they can appear at any point without being related to the code being executed. The "default" filtering method (print the first occurrence of matching warnings for each location where the warning is issued) then is not appropriate; therefore I suggest a separate warning category (ResourceWarning?) for which people can enable different rules.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10093>
_______________________________________
More information about the Python-bugs-list
mailing list