This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients georg.brandl, pitrou
Date 2009-02-14.16:12:58
SpamBayes Score 4.0187e-05
Marked as misclassified No
Message-id <1234628022.6357.11.camel@fsol>
In-reply-to <>
> Hmm, is there a way to get the current number of open file descriptors?

Under Unix, you can use resource.getrlimit():

(1024, 1024)

But 1024 is a very common value, so you could simply loop 1024 times if
it's not too slow.
Besides, you definitely don't want to loop 2**31 times if 2**31 happens
to be the current limit.
Date User Action Args
2009-02-14 16:12:59pitrousetrecipients: + pitrou, georg.brandl
2009-02-14 16:12:58pitroulinkissue5179 messages
2009-02-14 16:12:58pitroucreate