New submission from Antoine Pitrou: >>> f = open("LICENSE", "rb") >>> sys.getsizeof(f) 4296 >>> f.close() >>> sys.getsizeof(f) 4296
Instead of waiting for the file object's deallocation, perhaps we should free the buffer when it is closed? ---------- components: IO, Library (Lib) messages: 166801 nosy: pitrou priority: low severity: normal status: open title: Closed files keep their buffer alive type: resource usage versions: Python 3.3, Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15488> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com