gpython icon indicating copy to clipboard operation
gpython copied to clipboard

No functional exit function.

Open stevenleeS0ht opened this issue 4 years ago • 0 comments

Consider the following code

$ ./gpython 
Python 3.4.0 (none, unknown)
[Gpython dev]
- os/arch: linux/amd64
- go version: go1.16.6
>>> exit()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
    FIXME line of source goes here
NameError: "name 'exit' is not defined"
>>> import sys
>>> sys.exit()
<SystemExit instance at 0xc000208180>
>>> quit()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
    FIXME line of source goes here
NameError: "name 'quit' is not defined"

Unable to exit REPL of gpython by function.

stevenleeS0ht avatar Jul 31 '21 01:07 stevenleeS0ht