Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[ExceptionGroup] Inconsistent raise inside except* #103590

Closed
Labels
type-bugAn unexpected behavior, bug, or error
@andriilahuta

Description

@andriilahuta

Bug report

When raising inside except* block and the caught exception wasn't an ExceptionGroup originally, then raised exception doesn't get wrapped in ExceptionGroup:

try:try:raiseTypeError(1)# prints ValueError(3)raiseExceptionGroup('', [TypeError(2)])# prints ExceptionGroup('', [ValueError(3)])    except*TypeError:raiseValueError(3)exceptBaseExceptionase:print(repr(e))

Your environment

  • CPython versions tested on: 3.11.3
  • Operating system and architecture: Windows 11 / Ubuntu 22.04

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp