[issue19630] marshal.dump cannot write to temporary file

Lukasz Mielicki report at bugs.python.org
Sun Nov 17 14:20:24 CET 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue19630>
_______________________________________


More information about the Python-bugs-list mailing list