class Foo (object):
def __enter__ (self):
print("Enter")
return 1, 2, 3
def __exit__ (self, exit, value, exc):
print("Exit")
with Foo() as (a, b, c):
print(a, b, c)
Y2xhc3MgRm9vIChvYmplY3QpOgogICAgCiAgICBkZWYgX19lbnRlcl9fIChzZWxmKToKICAgICAgICBwcmludCgiRW50ZXIiKQogICAgICAgIHJldHVybiAxLCAyLCAzCiAgICAgICAgCiAgICBkZWYgX19leGl0X18gKHNlbGYsIGV4aXQsIHZhbHVlLCBleGMpOgogICAgICAgIHByaW50KCJFeGl0IikKICAgICAgICAKd2l0aCBGb28oKSBhcyAoYSwgYiwgYyk6CiAgICBwcmludChhLCBiLCBjKQo=