strange behaviour when writing a large amount of data on stdout

bruno at modulix onurb at xiludom.gro
Wed Nov 23 14:14:48 CET 2005


Manlio Perillo wrote:
> Regards.
> 
> On my system:
> Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)]
> on win32, Windows XP
> 
> I have this problem:
> 
> 
>>>>n = 61409 + 1
>>>>data = 'x' * n
> 
> 
>>>>print data
> 
> 
> Traceback (most recent call last):
>   File "xxx", line xxx, in ?
>     print data
> IOError: [Errno 12] Not enough space
> 
> Can someone reproduce this bug?

Not here, but it's a bipro amd64 with a couple Mb of ram !-)
(for the record, it works fine for far greater values, ie n = 128000000)

> I begin to think that my system is messed up...

<troll>
OF course it's messed up, else it wouldn't be a real Windows box !-)
</troll>

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list