Skip to the content.

Multiple Context Managers

Recipes

with A() as a, B() as b:
    SUITE

is semantically equivalent to:

with A() as a:
    with B() as b:
        SUITE