[issue42830] tempfile mkstemp() leaks file descriptors if os.close() is not called

2021-07-09 Thread Mieczysław Torchała
Mieczysław Torchała added the comment: Hi Andrei! In my case it was: OSError: [Errno 24] Too many open files -- ___ Python tracker <https://bugs.python.org/issue42

[issue42830] tempfile mkstemp() leaks file descriptors if os.close() is not called

2021-01-28 Thread Mieczysław Torchała
Mieczysław Torchała added the comment: Yes, having it written explicitly in docs (that remove means not only a file removal with unlink/remove and warn about lacking file descriptors), or/and providing a remove function in tempfile which will both unlink and close, would be valuable

[issue42830] tempfile mkstemp() leaks file descriptors if os.close() is not called

2021-01-05 Thread Mieczysław Torchała
New submission from Mieczysław Torchała : tempfile mkstemp() documentation says: "Unlike TemporaryFile(), the user of mkstemp() is responsible for deleting the temporary file when done with it." mkstemp() returns a tuple: file_descriptor, file_path = mkstemp() Calling only