-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed as duplicate of#129900
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixestopic-replRelated to the interactive shellRelated to the interactive shelltype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
Python's new REPL seems to eat exit codes and instead return 1:
¶ python
Python 3.13.0 (main, Oct 19 2024, 04:14:02) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit(42)
👉 1
¶ PYTHON_BASIC_REPL=1 python
Python 3.13.0 (main, Oct 19 2024, 04:14:02) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit(42)
👉 42
¶ python -m _pyrepl
>>> exit(42)
👉 42
CPython versions tested on:
3.13
Operating systems tested on:
Linux
Linked PRs
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixestopic-replRelated to the interactive shellRelated to the interactive shelltype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error