From 53d886a49241e6398671c7aa4bf049efbb01dd21 Mon Sep 17 00:00:00 2001 From: Simon Forman Date: Fri, 24 Apr 2020 00:03:32 -0700 Subject: [PATCH] read text from REPL, don't eval --- joy/joy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/joy/joy.py b/joy/joy.py index 05988c5..1ee73d3 100644 --- a/joy/joy.py +++ b/joy/joy.py @@ -98,7 +98,7 @@ def repl(stack=(), dictionary=None): print(stack_to_string(stack), '<-top') print() try: - text = eval(input('joy? ')) + text = input('joy? ') except (EOFError, KeyboardInterrupt): break viewer = TracePrinter()