Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment:

Fortunately, the lower-level write() has no such bug, at least when used in 
binary mode as FileIO does: it's almost a direct call to WriteFile().
This issue is more considered because it's not a bug in the Microsoft CRT, but 
in the Python implementation of the IO stack.

About the issue, I'd suggest to just clamp the length to 2**32-1, and don't 
bother retrying; leave this to the buffered layer.

----------
nosy: +amaury.forgeotdarc

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

Reply via email to