
July 27, 2019
8:49 a.m.
26.07.19 21:52, Bruce Leban пише:
Besides an unusual for Python layout (a clause has different indentation than the initial clause of the statement to which it belongs) there is other problem. The exception block is not the part of the "for" or "with" block. After handling an exception in the "for" clause you do not continue to execute the "for" block, but leave the loop. After handling an exception in the "with" clause you do not continue to execute the "with" block and do not call `__exit__` when leave it. To me, this syntax is much more confusing than my initial proposition.
2062
Age (days ago)
2062
Last active (days ago)
0 comments
1 participants
participants (1)
-
Serhiy Storchaka