Is a with on open always necessary?
lie.1296 at gmail.com
Wed Jan 25 13:22:52 EST 2012
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.
More information about the Python-list