DemetriousJones
Joined 1 year ago
Karma
10
Submissions
11
Member since
Dec 12
Joined 1 year ago
I understand if statements not having their own scope for simplicity's sake, but the fact that `with` blocks don't is simply mind-bobbling to me. ``` with open("text.txt", 'w') as f: f.write("hello world") f.write("hello world") # at least the handle was automatically closed so it will give an IO error ```