python / python/cpython

`atexit` functions are not called when `os.exec*()` is called

オープン
#149,394 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

docs
主要言語
Python
スター
77.2k
フォーク
35.9k
PR マージ指標
PR 指標を取得中

説明

Documentation

Running the following test file

#!/usr/bin/env python3
import atexit
import os
import sys

atexit.register(print, "atexit callback called")
# sys.exit()
os.execl("/usr/bin/true", "true")

does not print a message to the console in Python 3.14, but os.exec*() is not included in the list of cases where atexit functions are not called. The atexit module documentation should be updated to also mention os.exec*().

Linked PRs
  • gh-149395

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

atexit モジュールのドキュメントから始め、atexit 関数が呼び出されないケースへのリンクされた一覧を確認してください。その一覧を更新して os.exec*() に言及し、その後、ドキュメントが提供された実行可能な例を正確に反映していることを確認してください。gh-149395 は関連する pull request としてリンクされています。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
documentation
issue の種類
ドキュメント
難易度
1/5
見積もり時間
1時間未満
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。