Author vstinner
Recipients amaury.forgeotdarc, casevh, neologix, pitrou, santoso.wijaya, terry.reedy, vstinner
Date 2011-03-06.10:08:05
SpamBayes Score 0.0459187
Marked as misclassified No
Message-id <1299406087.0.0.664481893864.issue11395@psf.upfronthosting.co.za>
In-reply-to
Content
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 :-)
History
Date User Action Args
2011-03-06 10:08:07vstinnersetrecipients: + vstinner, terry.reedy, amaury.forgeotdarc, pitrou, casevh, neologix, santoso.wijaya
2011-03-06 10:08:06vstinnersetmessageid: <1299406087.0.0.664481893864.issue11395@psf.upfronthosting.co.za>
2011-03-06 10:08:06vstinnerlinkissue11395 messages
2011-03-06 10:08:05vstinnercreate