Skip to content

Commit 59e25f5

Browse files
committed
lispy-python.py: Update
1 parent bead751 commit 59e25f5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lispy-python.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ def reload():
611611
spec.loader.exec_module(mod)
612612
top_level().f_globals["lp"] = mod
613613
sys._getframe().f_back.f_globals["lp"] = mod
614+
sys._getframe().f_back.f_locals["lp"] = mod
614615
return mod
615616

616617
def reload_module(fname):
@@ -816,9 +817,11 @@ def eval_code(_code: str, _env: Dict[str, Any] = {}) -> EvalResult:
816817
binds2 = [bind for bind in binds1 if bind not in ["__res__", "__return__"]]
817818
print_fn = cast(Callable[..., str], to_str if _env.get("echo") else str)
818819
binds = {bind: print_fn(locals_2[bind]) for bind in binds2}
819-
except RuntimeError as e:
820-
if str(e) == "break":
821-
pm()
820+
# except RuntimeError as e:
821+
# if str(e) == "break":
822+
# pm()
823+
# else:
824+
# raise
822825
# pylint: disable=broad-except
823826
except Exception as e:
824827
err = f"{e.__class__.__name__}: {e}\n{e.__dict__}"

0 commit comments

Comments
 (0)