Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a1026d commit ed491d9Copy full SHA for ed491d9
1 file changed
Doc/tutorial/errors.rst
@@ -535,11 +535,20 @@ of a certain type while letting all other exceptions propagate to
535
other clauses and eventually to be reraised. ::
536
537
>>> def f():
538
- ... raise ExceptionGroup("group1",
539
- ... [OSError(1),
540
- ... SystemError(2),
541
- ... ExceptionGroup("group2",
542
- ... [OSError(3), RecursionError(4)])])
+ ... raise ExceptionGroup(
+ ... "group1",
+ ... [
+ ... OSError(1),
+ ... SystemError(2),
543
+ ... ExceptionGroup(
544
+ ... "group2",
545
546
+ ... OSError(3),
547
+ ... RecursionError(4)
548
+ ... ]
549
+ ... )
550
551
552
...
553
>>> try:
554
... f()
0 commit comments