projects
/
cython.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
bc163b56fb34f1a8e4766804e8b90138bfced75f
[cython.git]
/
tests
/
run
/
with_statement_module_level_T536.pyx
1
# ticket: 536
2
3
__doc__ = """
4
>>> inner_result
5
['ENTER']
6
>>> result
7
['ENTER', 'EXIT (None, None, None)']
8
"""
9
10
result = []
11
12
class ContextManager(object):
13
def __enter__(self):
14
result.append("ENTER")
15
def __exit__(self, *values):
16
result.append("EXIT %r" % (values,))
17
18
with ContextManager() as c:
19
inner_result = result[:]