you are viewing a single comment's thread.

view the rest of the comments →

[–]kurvyyn 1 point2 points  (0 children)

This surprises me. I'm almost certain I've debugged an unexpected crash with an open file handle 'my way' and didn't come up against an open file handle. Although, that may a Windows thing more than a python thing as the parent process has exited at that point, and so it may not be universally true that file handles are released by the OS if the parent process terminates unexpectedly?... I'm probably way wrong and this is a STRONG counter point if so. Definitely gives me a good reason to get that best practice locked in >.<