Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PEP 765 -- Disallow return/break/continue that exit a finally block #262

Open
4 of 7 tasks
iritkatriel opened this issue Nov 20, 2024 · 2 comments
Open
4 of 7 tasks
Labels
PEP Python Enhancement Proposal

Comments

@iritkatriel
Copy link
Member

iritkatriel commented Nov 20, 2024

Please consider PEP 765 -- Disallow return/break/continue that exit a finally block
https://peps.python.org/pep-0765/

  • The PEP has been discussed in threads listed in its Post-History header
  • The PEP was announced on Discuss (link in Post-History)
  • The PEP includes all relevant Suggested Sections
  • The PEP includes endorsements from the projects/groups/people it helps
  • The PEP has a CODEOWNERS entry

SIG-specific:

  • Typing PEPs: link to the Typing Council's recommendation for the PEP:
  • Packaging PEPs: don't file the issue here, ask the delegate (Paul Moore) on Packaging Discourse
@iritkatriel iritkatriel added the PEP Python Enhancement Proposal label Nov 20, 2024
@zooba
Copy link
Member

zooba commented Nov 20, 2024

FTR, while the PEP now contains everything I wanted to see included, I still don't think this is worthwhile churn. The low rate of use suggests a low rate of bugs, but the proposed change turns every instance into something that authors must take action on.

This is a good candidate for linters to warn about. Not for the compiler in the runtime.

@Yhg1s
Copy link
Member

Yhg1s commented Nov 20, 2024

FYI: considering the timing, the (2024) SC is leaving this PEP for the next SC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PEP Python Enhancement Proposal
Projects
None yet
Development

No branches or pull requests

3 participants