class Resource(object):

    def __enter__(self):
        print('Entering context.')
return self

def __exit__(self, *exc):
    print('Exiting context.')

def fun():
    with Resource():
        print('Returning inside with-statement.')
return
print('Returning outside with-statement.')
fun()
In Python, if I return inside a "with" block, will the file still close?