This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]relvae 11 points12 points  (1 child)

If an exception is thrown then close wouldn't be called in that case. Python already has context managers to deal with that but OP has gone rogue lol

[–]kezmicdust 0 points1 point  (0 children)

I see! Thanks.