Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #12538
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python.list@tim.thechases.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.003 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'parameter': 0.05; 'python': 0.08; 'suggestion.': 0.09; '"%s': 0.16; 'docstrings': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'hint': 0.16; 'message-id:@tim.thechases.com': 0.16; 'received:70.251': 0.16; 'received:dsl.rcsntx.swbell.net': 0.16; 'received:rcsntx.swbell.net': 0.16; 'received:swbell.net': 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.16; 'subject:list': 0.18; 'functions,': 0.18; 'cc:no real name:2**0': 0.20; "doesn't": 0.22; 'cc:2**0': 0.22; 'header:In-Reply-To:1': 0.22; 'gregory': 0.23; 'import': 0.28; 'print': 0.29; 'cc:addr:python.org': 0.30; 'at.': 0.30; 'disappointed': 0.30; 'ewing': 0.30; 'granted,': 0.30; 'thanks': 0.30; 'seem': 0.31; 'it.': 0.33; "i've": 0.34; 'header :User-Agent:1': 0.34; 'pretty': 0.35; 'skip:" 20': 0.35; 'corner': 0.37; 'using': 0.37; 'but': 0.37; 'should': 0.38; 'subject:: ': 0.39; 'subject:with': 0.39; 'back': 0.62; 'online': 0.71; 'probe': 0.91; 'obvious,': 0.93 |
| Date | Wed, 31 Aug 2011 19:53:48 -0500 |
| From | Tim Chase <python.list@tim.thechases.com> |
| User-Agent | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.20) Gecko/20110826 Icedove/3.1.12 |
| MIME-Version | 1.0 |
| To | Gregory Ewing <greg.ewing@canterbury.ac.nz> |
| Subject | Re: PC locks up with list operations |
| References | <4e5e2a0c$0$29965$c3e8da3$5496439d@news.astraweb.com> <mailman.599.1314794452.27778.python-list@python.org> <4e5e2d81$0$29991$c3e8da3$5496439d@news.astraweb.com> <9c7uihF6feU1@mid.individual.net> |
| In-Reply-To | <9c7uihF6feU1@mid.individual.net> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-AntiAbuse | This header was added to track abuse, please include it with any abuse report |
| X-AntiAbuse | Primary Hostname - boston.accountservergroup.com |
| X-AntiAbuse | Original Domain - python.org |
| X-AntiAbuse | Originator/Caller UID/GID - [47 12] / [47 12] |
| X-AntiAbuse | Sender Address Domain - tim.thechases.com |
| X-Source | |
| X-Source-Args | |
| X-Source-Dir | |
| Cc | python-list@python.org |
| 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.639.1314838442.27778.python-list@python.org> (permalink) |
| Lines | 23 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1314838442 news.xs4all.nl 2529 [2001:888:2000:d::a6]:55821 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:12538 |
Show key headers only | View raw
On 08/31/11 18:31, Gregory Ewing wrote:
> The Python process should also be able to set its own
> limits using resource.setrlimit().
A new corner of stdlib that I've never poked at. Thanks for the
suggestion. Disappointed though that it doesn't seem to have
docstrings on the functions, so I had to wade back out to the
online docs to probe at it. Granted, after the fact, they were
pretty obvious, but it would be nice if
"help(resource.getrlimit)" gave me a hint as to what that one
expected parameter should have been.
-tim
import resource as r
token = "RLIMIT_"
for item in dir(r):
if item.startswith(token):
print "%s:" % item[len(token):],
print "%s hard/%s soft" % r.getrlimit(getattr(r, item))
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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