OILS / opy / gold / with_statement.py View on Github | oilshell.org

9 lines, 3 significant
1#!/usr/bin/env python2
2"""
3with_statement.py
4"""
5# Make it local so we use STORE_FAST instead of STORE_NAME, etc.
6def f():
7 with open('foo.txt') as f:
8 contents = f.read()
9