Antoine Pitrou <[email protected]> added the comment:

> 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.

_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue5179>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to