[issue10093] Warn when files are not explicitly closed
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>
More information about the Python-bugs-list