[issue10093] Warn when files are not explicitly closed

Antoine Pitrou report at bugs.python.org
Fri Oct 22 21:49:57 CEST 2010


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

> After thinking about what warning to go with, I take back my python-dev 
> suggestion of ResourceWarning and switch to DebugWarning.

So what is your advice now?
I've thought about the DebugWarning name myself and I think it's a rather bad name, because many warnings are debug-related in practice. I'd just say stick with ResourceWarning.

----------

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


More information about the Python-bugs-list mailing list