`asyncio.Timeout.__aexit__` does not handle `BaseExceptionGroup`
オープン
@gunyu1019 がすでに取り組んでいます。
2025年8月15日 から。
stdlib
topic-asyncio
type-bug
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
Bug report
Bug description:
There may be a good reason for this I am not seeing, but in the asyncio.Timeout.__aexit__ handler, the exception group handling seems too narrow:
Given exc_val itself can be a BaseException and _insert_timeout_error takes a BaseException as an argument, I fail to see a reason not to check for superclass BaseExceptionGroup instead.
This no longer impacts me as I implemented what I was aiming for in a better way, but it still looks like a bug. Is it?
CPython versions tested on:
3.13
Operating systems tested on:
Linux
Linked PRs
- gh-137797
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。