Код: Выделить всё
except
Теперь предположим, что я делаю что-то вроде этого:
Код: Выделить всё
try:
name = "rubicon" / 2 # to raise an exception
except Exception as e:
print("No, not possible.")
finally:
print("OK, I caught you.")
Подробнее здесь: https://stackoverflow.com/questions/369 ... t-managers