string copying

Aahz aahz at pythoncraft.com
Sun Mar 31 09:19:53 EST 2002


In article <gEEp8.77869$Ou.56166 at atlpnn01.usenetserver.com>,
Steve Holden <sholden at holdenweb.com> wrote:
>"Tim Peters" <tim.one at comcast.net> wrote ...
>> [Bengt Richter, on consuming vast quantities of memory quickly]
>>>
>>> s = 'x'*2**30 would be a quick gig too. But it made me think
>>> maybe one could write a sort of memory test (to exercise the
>>> available python space, anyway).  Does python run out of memory
>>> gracefully?
>>
>> Very.  You should get a clean MemoryError exception if you try.
>>
>> >>> 'x' * 2**30
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in ?
>> MemoryError
>> >>>
>>
>My laptop upgrade clearly takes my platform beyond the timbot conceptual
>limit: it took about three minutes to start printing (I'm not thinking of
>letting it finish) with no error message in sight.

<boggle>  How many gigs in your swap file?
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Why is this newsgroup different from all other newsgroups?



More information about the Python-list mailing list