We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 372b290 commit cc2f4f1Copy full SHA for cc2f4f1
1 file changed
test/test_gen.py
@@ -1,4 +1,12 @@
1
2
+@profile
3
+def my_func():
4
+ a = [1] * (10 ** 6)
5
+ b = [2] * (2 * 10 ** 7)
6
+ del b
7
+ yield a
8
+
9
10
@profile
11
def test_comprehension():
12
# Dict comprehension
@@ -37,5 +45,8 @@ def test_generator():
37
45
38
46
39
47
if __name__ == '__main__':
48
+ with profile:
49
+ next(my_func()) # Issue #42
50
40
51
test_generator()
41
52
test_comprehension()
0 commit comments