Пример #1
0
 def fn(i):
     try:
         return snippet.mod_func(i)
     except OverflowError:
         return 123
     except ZeroDivisionError:
         return 1234
Пример #2
0
 def int_mod_ovf_zer_fn(i):
     try:
         return snippet.mod_func(i)
     except OverflowError:
         return 123
     except ZeroDivisionError:
         return 1234
     except:
         return 12345