[Tutor] Too many open files

Burchill, Scott B. sburch@ordway.org
Mon, 3 Dec 2001 15:30:08 -0600

I have a small program which uses recursion while dealing with a flat file
database.  I am opening and closing a number of files repeatedly during this
recursion and I feel like I have done the closing needed but I am still
being faced with a "too many files open" error.

My questions:  Is there a variable I can reference which holds the number of
open files?  How can I find out what the maximum number of open files is for
my system?

I am running as follows:
Python 2.1.1 (#1, Sep  4 2001, 12:16:58)
[GCC 3.0] on sunos5

Thanks loads in advance for any help!


Scott B. Burchill
Ordway Center for the Performing Arts
345 Washington Street
St. Paul, MN  55102-1495

voice +1 (651) 282-3023
cell  +1 (651) 248-2713
fax   +1 (651) 224-5319
efax  +1 (508) 519-6133