We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PYTHONSTARTUP
1 parent f937468 commit faa22f4Copy full SHA for faa22f4
Lib/asyncio/__main__.py
@@ -101,7 +101,12 @@ def run(self):
101
import tokenize
102
with tokenize.open(startup_path) as f:
103
startup_code = compile(f.read(), startup_path, "exec")
104
- exec(startup_code, console.locals)
+ try:
105
+ exec(startup_code, console.locals)
106
+ except SystemExit:
107
+ raise
108
+ except BaseException:
109
+ sys.excepthook(*sys.exc_info())
110
111
ps1 = getattr(sys, "ps1", ">>> ")
112
if CAN_USE_PYREPL:
0 commit comments