← index #6440Issue #893
Duplicate · high · value 0.875
QUERY · ISSUE

Implement exit() to exit for ./micropython shell

openby nanjekyejoannahopened 2020-09-13updated 2024-09-29
enhancementport-unix

I know that currently CTRL-D exits the shell.

For consistency with other python shells i.e CPython, let us implement exit() as an option to also exit the shell.

If this sounds good, i will track this for myself so that I can implement this as part of google season of docs.

CANDIDATE · ISSUE

exit() not implemented in REPL

closedby roger-opened 2014-10-06updated 2014-10-06

As of 9336ee320a85527942d9ca2ddb95221d90582da0 I get this behaviour:

>>> exit()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'exit' is not defined
>>>

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied