New submission from Jason Gross:

Files opened on Windows in mode 'wb' have a limit on the number of characters 
that can be written to them (at once?); attempting to write too many bytes 
gives the confusing error “IOError: [Errno 22] Invalid argument”.  See 
http://support.microsoft.com/default.aspx?scid=kb;en-us;899149 and 
http://stackoverflow.com/questions/4226941/python-ioerror-errno-22-invalid-argument-when-using-cpickle-to-write-large.
  I have gotten this error when using subprocess.communicate(input=<large 
string>).  Please fix the subprocess library (and any other library that uses 
mode 'wb') to use mode 'w+b', at least on Windows.

----------
components: Library (Lib)
messages: 189624
nosy: Jason.Gross
priority: normal
severity: normal
status: open
title: subprocess should open stdin in mode w+b on windows
versions: Python 2.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18016>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to