There seems to be lots of questions on this topic bit I can't seem to find what exactly I should call inside my python script to increase the open file limit ? I know that I need to use the _setmaxstdio on C level but I am not sure how to call it in python. Any ideas ?
-
Isn't @NorthCat answer OK? If yes, please mark it as so. Also: stackoverflow.com/questions/6774724/….CristiFati– CristiFati2020-04-05 20:33:40 +00:00Commented Apr 5, 2020 at 20:33
Add a comment
|
2 Answers
Try to use win32file from pywin32:
import win32file
print win32file._getmaxstdio() #512
win32file._setmaxstdio(1024)
print win32file._getmaxstdio() #1024