Files
micropython/tests/cmdline/repl_lock.py.exp
Andrew Leech 5b3c928f53 unix/main: Use standard pyexec REPL for unix and windows ports.
This improves REPL usage consistency across ports, by utilizing the pyexec
code for the unix REPL.

Only enabled when MICROPY_USE_READLINE == 1 (the default).

Signed-off-by: Andrew Leech <andrew.leech@planetinnovation.com.au>
2025-11-22 00:00:07 +11:00

11 lines
272 B
Plaintext

MicroPython \.\+ version
Type "help()" for more information.
>>> import micropython
>>> micropython.heap_lock()
>>> 1+1
2
>>> micropython.heap_lock()
>>> None # Cause the repl's line storage to be enlarged ----------------
>>> micropython.heap_lock()
>>> raise SystemExit