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

Function exit

Lib/idlelib/run.py:314–326  ·  view source on GitHub ↗

Exit subprocess, possibly after first clearing exit functions. If config-main.cfg/.def 'General' 'delete-exitfunc' is True, then any functions registered with atexit will be removed before exiting. (VPython support)

()

Source from the content-addressed store, hash-verified

312 """XXX How to do this now?"""
313
314def exit():
315 """Exit subprocess, possibly after first clearing exit functions.
316
317 If config-main.cfg/.def 'General' 'delete-exitfunc' is True, then any
318 functions registered with atexit will be removed before exiting.
319 (VPython support)
320
321 """
322 if no_exitfunc:
323 import atexit
324 atexit._clear()
325 capture_warnings(False)
326 sys.exit(0)
327
328
329def fix_scaling(root):

Callers 4

mainFunction · 0.70
runcodeMethod · 0.70
exitonclickMethod · 0.50

Calls 3

capture_warningsFunction · 0.70
_clearMethod · 0.45
exitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…