MCPcopy Index your code
hub / github.com/python/cpython / setquit

Function setquit

Lib/site.py:430–443  ·  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

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

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…