MCPcopy Index your code
hub / github.com/RustPython/RustPython / setquit

Function setquit

Lib/site.py:433–446  ·  view source on GitHub ↗

Define new builtins 'quit' and 'exit'. These are objects which make the interpreter exit when called. The repr of each object contains a hint at how it works.

()

Source from the content-addressed store, hash-verified

431 return known_paths
432
433def setquit():
434 """Define new builtins 'quit' and 'exit'.
435
436 These are objects which make the interpreter exit when called.
437 The repr of each object contains a hint at how it works.
438
439 """
440 if os.sep == '\\':
441 eof = 'Ctrl-Z plus Return'
442 else:
443 eof = 'Ctrl-D (i.e. EOF)'
444
445 builtins.quit = _sitebuiltins.Quitter('quit', eof)
446 builtins.exit = _sitebuiltins.Quitter('exit', eof)
447
448
449def setcopyright():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected