| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4a1026d commit ed491d9
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -535,11 +535,20 @@ of a certain type while letting all other exceptions propagate to | |||
| 535 | 535 | other clauses and eventually to be reraised. :: | |
| 536 | 536 | ||
| 537 | 537 | >>> def f(): | |
| 538 | - ... raise ExceptionGroup("group1", | ||
| 539 | - ... [OSError(1), | ||
| 540 | - ... SystemError(2), | ||
| 541 | - ... ExceptionGroup("group2", | ||
| 542 | - ... [OSError(3), RecursionError(4)])]) | ||
| 538 | + ... raise ExceptionGroup( | ||
| 539 | + ... "group1", | ||
| 540 | + ... [ | ||
| 541 | + ... OSError(1), | ||
| 542 | + ... SystemError(2), | ||
| 543 | + ... ExceptionGroup( | ||
| 544 | + ... "group2", | ||
| 545 | + ... [ | ||
| 546 | + ... OSError(3), | ||
| 547 | + ... RecursionError(4) | ||
| 548 | + ... ] | ||
| 549 | + ... ) | ||
| 550 | + ... ] | ||
| 551 | + ... ) | ||
| 543 | 552 | ... | |
| 544 | 553 | >>> try: | |
| 545 | 554 | ... f() | |
| Back | FazBrowse Home | New Git URL |
0 commit comments