sys.exit(code) returns "success" to the OS for some nonzero values of code

Open
#68,240 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

The issue identifies Python's sys.exit(code) behavior and the Interpreter Core component, but names no source file or test. Start by reproducing the reported nonzero exit-code cases and tracing the interpreter's sys.exit handling; done means those cases are consistently reported as failures by the operating system with regression coverage.

Written by the indexing model from the issue text.

Description

3.11 3.12 3.13 interpreter-core type-bug
BPO 24052
Nosy @abalkin, @stevendaprano, @bitdancer, @skrah, @vadmium, @serhiy-storchaka, @eryksun

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2015-04-24.15:29:13.556>
labels = ['interpreter-core', 'type-bug', '3.8', '3.9', '3.10']
title = 'sys.exit(code) returns "success" to the OS for some nonzero values of code'
updated_at = <Date 2021-03-12.17:42:44.183>
user = 'https://github.com/abalkin'

bugs.python.org fields:

activity = <Date 2021-03-12.17:42:44.183>
actor = 'eryksun'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Interpreter Core']
creation = <Date 2015-04-24.15:29:13.556>
creator = 'belopolsky'
dependencies = []
files = []
hgrepos = []
issue_num = 24052
keywords = []
message_count = 14.0
messages = ['241946', '241952', '241954', '241957', '241958', '241961', '241964', '241965', '241967', '242272', '242359', '242367', '242375', '273848']
nosy_count = 8.0
nosy_names = ['belopolsky', 'Arfrever', 'steven.daprano', 'r.david.murray', 'skrah', 'martin.panter', 'serhiy.storchaka', 'eryksun']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue24052'
versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

Dominant language
Python
Stars
77.2k
Forks
36k
Avg merge
1d 9h
Merged PRs (30d)
558

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from python/cpython

All issues in python/cpython

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.