[issue13222] Erroneous unclosed file warning

Antoine Pitrou report at bugs.python.org
Wed Oct 19 21:06:39 CEST 2011


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

Since the "name" is 7, it's certainly another file than the one opened in:
        f = open("/proc/%s/cmdline" % self.pid)

It could be that you called open on the result of os.pipe(), or perhaps you used a subprocess and didn't call communicate() or close() on it.

----------
resolution:  -> invalid
status: open -> closed

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


More information about the Python-bugs-list mailing list