From: Simon Forman Date: Fri, 24 Apr 2020 07:03:32 +0000 (-0700) Subject: read text from REPL, don't eval X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=53d886a49241e6398671c7aa4bf049efbb01dd21;p=joypy%2FThun.git read text from REPL, don't eval --- 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()