[issue9611] FileIO not 64-bit safe under Windows
Amaury Forgeot d'Arc
report at bugs.python.org
Thu Nov 4 11:35:12 CET 2010
Amaury Forgeot d'Arc <amauryfa at 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.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list