On Fri, Oct 29, 2010 at 8:35 PM, Brett Cannon <br...@python.org> wrote: > For those of you who have not noticed, Antoine committed a patch that > raises a ResourceWarning under a pydebug build if a file or socket is > closed through garbage collection instead of being explicitly closed.
Just yesterday I discovered /proc/<your PID here>/fd/ which is a list of open file descriptors for your PID on *nix and includes all open files, pipes, and sockets. Very handy, I filed some tickets about company internal libs that were opening file handles as a side effect of import (logging mostly). I tried to provoke standard python imports (non-test) to leave some open handles and came up empty. -Jack _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com