Nick Coghlan added the comment: The method call should keep the file object alive until it completes (due to the self reference). What behaviour prompted the conclusion that it is being closed early?
If the symptom is that the data isn't being written to disk, we may have a missing flush() call somewhere causing a race condition. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18879> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com