[issue11395] print(s) fails on Windows with long strings

STINNER Victor report at bugs.python.org
Sun Mar 6 11:08:06 CET 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

I did some tests: os.write(1, b'X'*length) does always fail with length >= 63842. It does sometimes fail with length > 35000. The maximum looks completly random: as written in Microsoft documentation, "The maximum size of the buffer will depend on heap usage"...

32000 looks arbitrary. I would prefer 2^15-1 (32767) because it looks less magical :-)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11395>
_______________________________________


More information about the Python-bugs-list mailing list