This will finally change in Python 3.14
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
PEP 765 will be introduced in Python 3.14, disallowing return, break, and continue statements from exiting a finally block, thereby preventing potential bugs. The finally block ensures execution regardless of any raised exceptions. This change aims to enhance code reliability and prevent misused statements that could lead to bugs.
•3m watch time
2 Comments
Sort: