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

Cannot perform frame jump after handled exception #92228

Closed
Assignees
iritkatriel
Labels
3.11only security fixes3.12only security fixesrelease-blockertype-bugAn unexpected behavior, bug, or error
@dkrystki

Description

@dkrystki

For given code:

def fun():    a = 1  # <---- jump location    try:        b = 1 / 0    except ZeroDivisionError as e:        pass    c = 3  # current locationif __name__ == "__main__":    fun()

Jumping fromcurrent location tojump location yieldsValueError: can't jump from within an exception handler

Your environment

  • CPython versions tested on: 3.11.0a7
  • Operating system and architecture: Linux q 5.4.0-42-generic x64

Works as expected for python < 3.11

Metadata

Metadata

Assignees

Labels

3.11only security fixes3.12only security fixesrelease-blockertype-bugAn unexpected behavior, bug, or error

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp