| 1 |
# This file uses parenthesized context managers introduced in Python 3.9. |
| 2 |
|
| 3 |
|
| 4 |
with \ |
| 5 |
make_context_manager1() as cm1, \ |
| 6 |
make_context_manager2() as cm2, \ |
| 7 |
make_context_manager3() as cm3, \ |
| 8 |
make_context_manager4() as cm4 \ |
| 9 |
: |
| 10 |
pass |
| 11 |
|
| 12 |
|
| 13 |
with ( |
| 14 |
new_new_new1() as cm1, |
| 15 |
new_new_new2() |
| 16 |
): |
| 17 |
pass |
| 18 |
|
| 19 |
|
| 20 |
# output |
| 21 |
# This file uses parenthesized context managers introduced in Python 3.9. |
| 22 |
|
| 23 |
|
| 24 |
with ( |
| 25 |
make_context_manager1() as cm1, |
| 26 |
make_context_manager2() as cm2, |
| 27 |
make_context_manager3() as cm3, |
| 28 |
make_context_manager4() as cm4, |
| 29 |
): |
| 30 |
pass |
| 31 |
|
| 32 |
|
| 33 |
with new_new_new1() as cm1, new_new_new2(): |
| 34 |
pass |