Author casevh
Recipients casevh
Date 2011-03-04.05:47:42
SpamBayes Score 6.93034e-10
Marked as misclassified No
Message-id <>
Python 3.2 fails when printing long strings.

Python 3.2 (r32:88445, Feb 20 2011, 21:30:00) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print("a"*66000)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IOError: [Errno 12] Not enough space

Some observations:

1) 3.2 on Linux prints just fine.
2) 2.7.1 and 3.1.3 on Windows x64 are fine
3) The 32-bit interpreter for 3.2 also fails.
4) On 32-bit Windows, a length of 62733 works correctly but 62734, and higher, fail.
5) On 64-bit Windows, the output is visibly corrupted when the length reaches 62801 but the error does not occur until the length reaches 65536.
6) While experimenting with various lengths, I was able to crash the interpreter once.
Date User Action Args
2011-03-04 05:47:43casevhsetrecipients: + casevh
2011-03-04 05:47:43casevhsetmessageid: <>
2011-03-04 05:47:42casevhlinkissue11395 messages
2011-03-04 05:47:42casevhcreate