Demo entry 4722411



Submitted by anonymous on May 08, 2016 at 20:02
Language: Python 3. Code size: 175 Bytes.

class A(object):
def __enter__(self):
print("You are in")

    def __exit__(self, exc_type, exc_val, exc_tb):
        print("You are out")

with A() as a:

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).