Skip to content
This repository has been archived by the owner on Apr 10, 2022. It is now read-only.

Finish the PEP #22

Closed
iritkatriel opened this issue Feb 10, 2021 · 5 comments
Closed

Finish the PEP #22

iritkatriel opened this issue Feb 10, 2021 · 5 comments

Comments

@iritkatriel
Copy link
Member

This is a space to discuss anything else that we still need to do.

@iritkatriel
Copy link
Member Author

iritkatriel commented Feb 10, 2021

  1. Convert to .rst?
  2. Write missing sections (or remove the headings): "Security Implications", "How to Teach This", "References"
  3. Is "See Also" section staying in?
  4. Decide on the title. How about "Exception Groups" ? or "except*"?
  5. Add atexit use case

@Zac-HD
Copy link

Zac-HD commented Feb 10, 2021

  • Write missing sections (or remove the headings): "Security Implications", "How to Teach This", "References"

IMO the "How to Teach This" and "References" sections are particularly important for this kind of language change.

  • Decide on the title. How about "Exception Groups" ?

"Exception Groups and except*"?

@1st1
Copy link
Member

1st1 commented Feb 10, 2021

"Security Implications"

Are there any? There's no existing code that would suddenly become insecure with exception groups. As for the new code that would be written with the new syntax -- idk, usually we don't cover that in PEPs.

@iritkatriel
Copy link
Member Author

Another use case, similar to the pytest finalizers situation: atexit currently raises the last exception any registered handler raises: https://docs.python.org/3/library/atexit.html#atexit.register

@gvanrossum
Copy link
Member

It's beginning to look like this really has a lot of use cases!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants