Why python has limit for count of file handles?
<p>I writed simple code for test, how much files may be open in python script:</p>

<pre><code>for i in xrange(2000):
    fp = open('files/file_%d' % i, 'w')
    fp.write(str(i))
    fp.close()

fps = []
for x in xrange(2000):
    h = open('files/file_%d' % x, 'r')
    print h.read()
    fps.append(h)
</code></pre>

<p>and I get a exception</p>

<pre><code>IOError: [Errno 24] Too many open files: 'files/file_509'
</code></pre>
