Lukasz Mielicki added the comment: Thank you for detailed explanation. Too bad tempfile is inherently non-portable, but I'm fine with marshal.dumps as a w/a in this case.
I marshal to a temporary file to serialize input for Perforce command line client which is capable of accepting marshaled Python objects as input for some commands. Unfortunately writing directly to its stdin deadlocks (at least on Windows, where streams seems not be fully buffered). My guess is that Perforce client performs seek to end of file before reading it. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19630> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com