Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #13199

Re: PC locks up with list operations

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'situation.': 0.05; 'received:verizon.net': 0.07; 'terry': 0.07; 'python': 0.08; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'am,': 0.12; 'gained': 0.16; 'mylist': 0.16; 'reedy': 0.16; 'roy': 0.16; 'wrote:': 0.16; 'linux': 0.17; 'subject:list': 0.18; '>>>': 0.18; 'jan': 0.19; 'memory': 0.21; 'header:In-Reply-To:1': 0.22; "python's": 0.24; 'skip:[ 10': 0.27; 'does': 0.32; 'anyone': 0.32; 'sort': 0.33; 'there': 0.33; 'to:addr:python-list': 0.33; 'header :User-Agent:1': 0.34; 'duplicate': 0.34; 'header:X-Complaints- To:1': 0.35; 'anything': 0.36; 'useful': 0.36; 'think': 0.38; 'received:org': 0.38; 'steven': 0.38; 'subject:: ': 0.39; 'under': 0.39; 'help': 0.39; 'header:Mime-Version:1': 0.39; 'else': 0.39; 'subject:with': 0.39; 'why': 0.39; 'to:addr:python.org': 0.39; 'more': 0.60; 'care,': 0.64; 'discovered': 0.68; 'article,': 0.84; 'instruct': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: PC locks up with list operations
Date Mon, 12 Sep 2011 16:53:24 -0400
References <4e5e2a0c$0$29965$c3e8da3$5496439d@news.astraweb.com> <4e6dc66e$0$29986$c3e8da3$5496439d@news.astraweb.com> <roy-748F48.07400012092011@news.panix.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-74-109-121-73.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0
In-Reply-To <roy-748F48.07400012092011@news.panix.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1048.1315860909.27778.python-list@python.org> (permalink)
Lines 25
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1315860909 news.xs4all.nl 2434 [2001:888:2000:d::a6]:45070
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:13199

Show key headers only | View raw


On 9/12/2011 7:40 AM, Roy Smith wrote:
> In article<4e6dc66e$0$29986$c3e8da3$5496439d@news.astraweb.com>,
>   Steven D'Aprano<steve+comp.lang.python@pearwood.info>  wrote:
>
>>> mylist = [0]*12345678901234
>> [...]
>>> Apart from "Then don't do that!", is there anything I can do to prevent
>>> this sort of thing in the future? Like instruct Python not to request more
>>> memory than my PC has?
>>
>>
>> For anyone who may care, I can report that ulimit under Linux will help with
>> this situation.
>> [...]
>> Does anyone else think it would be useful for Python's memory manager to
>> enforce user-settable limits?
>
> Not me.  You've already discovered that ulimit does exactly what you
> want.  Why would be gained by having Python duplicate this functionality?

Having it on Windows.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

PC locks up with list operations Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-08-31 22:33 +1000
  Re: PC locks up with list operations Chris Withers <chris@simplistix.co.uk> - 2011-08-31 13:40 +0100
    Re: PC locks up with list operations Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-08-31 22:47 +1000
      Re: PC locks up with list operations Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2011-09-01 11:31 +1200
        Re: PC locks up with list operations Tim Chase <python.list@tim.thechases.com> - 2011-08-31 19:53 -0500
      Re: PC locks up with list operations Nobody <nobody@nowhere.com> - 2011-09-12 13:19 +0100
    Re: PC locks up with list operations Robert Spanjaard <spamtrap@arumes.com> - 2011-08-31 16:06 +0200
    Re: PC locks up with list operations John Nagle <nagle@animats.com> - 2011-09-15 12:27 -0700
  Re: PC locks up with list operations Benjamin Kaplan <benjamin.kaplan@case.edu> - 2011-08-31 08:49 -0400
    Re: PC locks up with list operations Carl Banks <pavlovevidence@gmail.com> - 2011-09-13 06:31 -0700
  Re: PC locks up with list operations Peter Otten <__peter__@web.de> - 2011-08-31 14:56 +0200
  Re: PC locks up with list operations Rodrick Brown <rodrick.brown@gmail.com> - 2011-08-31 10:13 -0400
  Re: PC locks up with list operations Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-09-12 18:44 +1000
    Re: PC locks up with list operations Roy Smith <roy@panix.com> - 2011-09-12 07:40 -0400
      Re: PC locks up with list operations Terry Reedy <tjreedy@udel.edu> - 2011-09-12 16:53 -0400

csiph-web