Commits

Armin Rigo committed 6d65219

Catch MemoryErrors raised by the machinery of interactive command-line (like compiling the input), and
display it like we do KeyboardInterrupt.

  • Participants
  • Parent commits 07f0c7c

Comments (0)

Files changed (1)

lib_pypy/pyrepl/simple_interact.py

         except KeyboardInterrupt:
             console.write("\nKeyboardInterrupt\n")
             console.resetbuffer()
+        except MemoryError:
+            console.write("\nMemoryError\n")
+            console.resetbuffer()