def somethin():
func = two_hour_long_computation_with_hard_to_serialze_output()
try:
a = untested_code_1(func)
b = untested_code_2(func)
c = untested_code_3(func)
except Exception as error:
#### important bit: creates a repl ####
import code; code.interact(local={**globals(),**locals()})
#### important bit ^ ####
save_results(a,b,c)
def somethin():
func = two_hour_long_computation_with_hard_to_serialze_output()
try:
a = untested_code_1(func)
b = untested_code_2(func)
c = untested_code_3(func)
except Exception as error:
#### important bit: creates a repl ####
import code; code.interact(local={**globals(),**locals()})
#### important bit ^ ####
save_results(a,b,c)