| 1 |
# flags: --minimum-version=3.11 |
| 2 |
# This file uses except* clause in Python 3.11. |
| 3 |
|
| 4 |
|
| 5 |
try: |
| 6 |
some_call() |
| 7 |
except* Error as e: |
| 8 |
pass |
| 9 |
|
| 10 |
|
| 11 |
with \ |
| 12 |
make_context_manager1() as cm1, \ |
| 13 |
make_context_manager2() as cm2, \ |
| 14 |
make_context_manager3() as cm3, \ |
| 15 |
make_context_manager4() as cm4 \ |
| 16 |
: |
| 17 |
pass |
| 18 |
|
| 19 |
|
| 20 |
# output |
| 21 |
|
| 22 |
|
| 23 |
# This file uses except* clause in Python 3.11. |
| 24 |
|
| 25 |
|
| 26 |
try: |
| 27 |
some_call() |
| 28 |
except* Error as e: |
| 29 |
pass |
| 30 |
|
| 31 |
|
| 32 |
with ( |
| 33 |
make_context_manager1() as cm1, |
| 34 |
make_context_manager2() as cm2, |
| 35 |
make_context_manager3() as cm3, |
| 36 |
make_context_manager4() as cm4, |
| 37 |
): |
| 38 |
pass |