Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
nneonneo
6y ago
0 comments
Save
Share
The file is in a with block - it should be automatically closed at the end of the block.
0 comments
1 comments · 1 top-level
top
newest
oldest
tyingq
6y ago
Yes, but if it fixes the issue then there's something off with NamedTemporaryFile and its __exit__. You mentioned the file descriptor was being closed by a GC run, right?
j
/
k
navigate · click thread line to collapse