python / python/cpython

Cannot set exit code in atexit callback

Open
#71,222 20 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

3.10 3.11 docs extension-modules interpreter-core type-bug
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

BPO 27035
Nosy @glyph, @bitdancer, @Bluehorn, @gwk, @Melebius, @pablogsal, @chrahunt, @kakshay21

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 2016-05-16.07:57:08.094>
labels = ['extension-modules', 'interpreter-core', 'type-bug', '3.10', '3.11']
title = 'Cannot set exit code in atexit callback'
updated_at = <Date 2021-08-19.09:10:43.702>
user = 'https://github.com/Melebius'

bugs.python.org fields:

activity = <Date 2021-08-19.09:10:43.702>
actor = 'Mike Hommey'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Extension Modules', 'Interpreter Core']
creation = <Date 2016-05-16.07:57:08.094>
creator = 'Melebius'
dependencies = []
files = []
hgrepos = []
issue_num = 27035
keywords = []
message_count = 19.0
messages = ['265678', '265696', '271736', '271740', '289145', '307052', '334237', '334241', '334242', '334243', '334263', '334264', '334285', '334286', '367957', '367992', '367993', '399896', '399897']
nosy_count = 9.0
nosy_names = ['glyph', 'r.david.murray', 'torsten', 'gwk', 'Melebius', 'pablogsal', 'chrahunt', 'kakshay', 'Mike Hommey']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue27035'
versions = ['Python 3.10', 'Python 3.11']

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.

Research direction

No source files or tests are identified. Start by locating the atexit callback handling in the interpreter core and extension-modules areas, then reproduce the reported behavior; done means establishing a defined way for an atexit callback to set the process exit code and covering that behavior with tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, operating-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.