Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Apr 10, 2022. It is now read-only.

Commit 847aa12

Browse filesBrowse files
authored
Experimental --> reference implementation, plus minor edits
1 parent 2678f89 commit 847aa12
Copy full SHA for 847aa12

File tree

Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed

‎except_star.md

Copy file name to clipboardExpand all lines: except_star.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -859,23 +859,23 @@ to be updated.
859859
## Reference Implementation
860860

861861
We developed these concepts (and the examples for this PEP) with
862-
[an experimental implementation](https://github.com/iritkatriel/cpython/tree/exceptionGroup-stage5).
862+
the help of [a reference implementation](https://github.com/iritkatriel/cpython/tree/exceptionGroup-stage5).
863863

864864
It has the builtin `ExceptionGroup` along with the changes to the traceback
865-
formatting code, in addition to the grammar and interpreter changes required
866-
to support `except*`.
865+
formatting code, in addition to the grammar, compiler and interpreter changes
866+
required to support `except*`.
867867

868868
Two opcodes were added: one implements the exception type match check via
869869
`ExceptionGroup.split()`, and the other is used at the end of a `try-except`
870870
construct to merge all unhandled, raised and reraised exceptions (if any).
871871
The raised/reraised exceptions are collected in a list on the runtime stack.
872872
For this purpose, the body of each `except*` clause is wrapped in a traditional
873873
`try-except` which captures any exceptions raised. Both raised and reraised
874-
exceptions are collected in one list. When the time comes to merge them into
875-
a result, the raised and reraised exceptions are distinguished by comparing
874+
exceptions are collected in the same list. When the time comes to merge them
875+
into a result, the raised and reraised exceptions are distinguished by comparing
876876
their metadata fields (context, cause, traceback) with those of the originally
877877
raised exception. As mentioned above, the reraised exceptions have the same
878-
metadata as the original, while raised ones do not.
878+
metadata as the original, while the raised ones do not.
879879

880880
## Rejected Ideas
881881

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.