|
|
|
|
|
by cle
2023 days ago
|
|
Yes. You can still send an EOF to quit (ctrl+d), or do "raise SystemExit()" which is all quit() does anyway: >>> print(inspect.getsource(quit.__call__))
def __call__(self, code=None):
try:
sys.stdin.close()
except:
pass
raise SystemExit(code)
|
|