Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #19416
| From | Lie Ryan <lie.1296@gmail.com> |
|---|---|
| Subject | Re: Is a with on open always necessary? |
| Date | 2012-01-26 05:22 +1100 |
| References | <4F198BD1.4040301@gmail.com> <mailman.4905.1327145939.27778.python-list@python.org> <JOWTq.5640$YC4.3793@newsfe19.iad> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5083.1327515796.27778.python-list@python.org> (permalink) |
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