I am running the same python.exe, from the same working directory, in VS Code's terminal running cmd.exe, and in Windows Terminal running cmd.exe. For some reason, these two behave differently. In fact, one recognizes exit while the other does not, insisting on exit(): I can't even begin to think what may be different between these two. Could that be an issue of Python itself? VS Code? The Python environment extension? Windows Terminal? Astral's https://github.com/astral-sh/python-build-standalone? Continue reading...