Vukasin Felbab added the comment:
Okay, so the problem is that I have a command library instance which is
containing a connection to a server and functions can be called to execute some
queries. As I pass this instance as a parameter in a recursive chain, after a
while the open files limit is
New submission from Vukasin Felbab:
shutil.copyfile() doesn't close the opened files, so it is vulnerable to IO
Error 24: too many files open
actually, the src and dst files should be closed after copy
--
components: IO
messages: 264286
nosy: vocdetnojz
priority: normal
sev