summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/with_continue.py
blob: fc2b24bd4bcd394d51f68f3a8742816d2bf5a802 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class CtxMgr:

    def __enter__(self):
        print("__enter__")
        return self

    def __exit__(self, a, b, c):
        print("__exit__", repr(a), repr(b))

for i in range(5):
    print(i)
    with CtxMgr():
        if i == 3:
            continue