-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Closed
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixesrelease-blockertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
For given code:
def fun():
a = 1 # <---- jump location
try:
b = 1 / 0
except ZeroDivisionError as e:
pass
c = 3 # current location
if __name__ == "__main__":
fun()
Jumping from current location
to jump location
yields ValueError: 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 fixesonly security fixes3.12only security fixesonly security fixesrelease-blockertype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
Status
Done