MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / exit

Function exit

tools/python-3.11.9-amd64/Lib/idlelib/run.py:306–318  ·  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

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

Callers 3

exitonclickMethod · 0.85
mainFunction · 0.85
runcodeMethod · 0.85

Calls 3

_clearMethod · 0.80
capture_warningsFunction · 0.70
exitMethod · 0.45

Tested by

no test coverage detected