Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #19416
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!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-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.008 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'concurrently': 0.07; 'defaults': 0.07; 'handlers': 0.09; '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; '256;': 0.16; 'descriptors.': 0.16; 'osx': 0.16; 'wrote:': 0.16; 'linux': 0.17; 'ryan': 0.18; 'header:In-Reply-To:1': 0.22; 'systems.': 0.23; 'opens': 0.23; 'windows': 0.26; 'subject:?': 0.30; 'header:User- Agent:1': 0.33; 'to:addr:python-list': 0.33; 'richard': 0.34; 'all.': 0.34; 'lie': 0.34; 'header:X-Complaints-To:1': 0.34; 'operating': 0.35; 'file': 0.35; 'received:au': 0.36; 'but': 0.37; 'received:org': 0.37; 'subject:with': 0.38; 'open': 0.38; 'files': 0.39; 'subject:: ': 0.39; 'might': 0.40; 'to:addr:python.org': 0.40; 'lower': 0.63; 'thousands': 0.65; 'limit': 0.67; 'have.': 0.77; '03:38': 0.84; 'subject:always': 0.84; 'subject:necessary': 0.84; 'received:110': 0.95 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Lie Ryan <lie.1296@gmail.com> |
| Subject | Re: Is a with on open always necessary? |
| Date | Thu, 26 Jan 2012 05:22:52 +1100 |
| References | <4F198BD1.4040301@gmail.com> <mailman.4905.1327145939.27778.python-list@python.org> <JOWTq.5640$YC4.3793@newsfe19.iad> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | 110-175-240-90.static.tpgi.com.au |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0 |
| In-Reply-To | <JOWTq.5640$YC4.3793@newsfe19.iad> |
| 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.5083.1327515796.27778.python-list@python.org> (permalink) |
| Lines | 15 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1327515796 news.xs4all.nl 6868 [2001:888:2000:d::a6]:51784 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:19416 |
Show key headers only | View raw
On 01/26/2012 04:17 AM, K Richard Pixley wrote: > On 1/21/12 03:38 , Lie Ryan wrote: >> It is only strictly necessary for programs that opens thousands of files >> in a short while, since the operating system may limit of the number of >> active file handlers you can have. > > The number you're looking for is 20 on many unix systems. That's all. 20 > concurrently open file descriptors. > > Modern systems open that number up somewhat, or make it tailorable. But > the number is still much lower than you might expect. From what I can gather, Linux defaults to 1024, Windows 16384, and OSX 256; I doubt many people would need to work with other OSes.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Is a with on open always necessary? Lie Ryan <lie.1296@gmail.com> - 2012-01-21 22:38 +1100
Re: Is a with on open always necessary? K Richard Pixley <rich@noir.com> - 2012-01-25 09:17 -0800
Re: Is a with on open always necessary? Lie Ryan <lie.1296@gmail.com> - 2012-01-26 05:22 +1100
csiph-web