Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
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
Projects
Status
Done