Repository navigation
Expand file tree
/
Copy pathrustpython_codegen__compile__tests__nested_double_async_with.snap
More file actions
88 lines (79 loc) · 3.35 KB
/
Copy pathrustpython_codegen__compile__tests__nested_double_async_with.snap
File metadata and controls
88 lines (79 loc) · 3.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
source: compiler/codegen/src/compile.rs
expression: "compile_exec(\"\\\nfor stop_exc in (StopIteration('spam'), StopAsyncIteration('ham')):\n with self.subTest(type=type(stop_exc)):\n try:\n async with egg():\n raise stop_exc\n except Exception as ex:\n self.assertIs(ex, stop_exc)\n else:\n self.fail(f'{stop_exc} was suppressed')\n\")"
---
1 0 SetupLoop
1 LoadNameAny (0, StopIteration)
2 LoadConst ("spam")
3 CallFunctionPositional(1)
4 LoadNameAny (1, StopAsyncIteration)
5 LoadConst ("ham")
6 CallFunctionPositional(1)
7 BuildTuple (2)
8 GetIter
>> 9 ForIter (73)
10 StoreLocal (2, stop_exc)
2 11 LoadNameAny (3, self)
12 LoadMethod (4, subTest)
13 LoadNameAny (5, type)
14 LoadNameAny (2, stop_exc)
15 CallFunctionPositional(1)
16 LoadConst (("type"))
17 CallMethodKeyword (1)
18 SetupWith (70)
19 Pop
3 20 SetupExcept (42)
4 21 LoadNameAny (6, egg)
22 CallFunctionPositional(0)
23 BeforeAsyncWith
24 GetAwaitable
25 LoadConst (None)
26 YieldFrom
27 Resume (3)
28 SetupAsyncWith (34)
29 Pop
5 30 LoadNameAny (2, stop_exc)
31 Raise (Raise)
4 32 PopBlock
33 EnterFinally
>> 34 WithCleanupStart
35 GetAwaitable
36 LoadConst (None)
37 YieldFrom
38 Resume (3)
39 WithCleanupFinish
40 PopBlock
41 Jump (59)
>> 42 Duplicate
6 43 LoadNameAny (7, Exception)
44 TestOperation (ExceptionMatch)
45 JumpIfFalse (58)
46 StoreLocal (8, ex)
7 47 LoadNameAny (3, self)
48 LoadMethod (9, assertIs)
49 LoadNameAny (8, ex)
50 LoadNameAny (2, stop_exc)
51 CallMethodPositional (2)
52 Pop
53 PopException
54 LoadConst (None)
55 StoreLocal (8, ex)
56 DeleteLocal (8, ex)
57 Jump (68)
>> 58 Raise (Reraise)
9 >> 59 LoadNameAny (3, self)
60 LoadMethod (10, fail)
61 LoadConst ("")
62 LoadNameAny (2, stop_exc)
63 FormatValue (None)
64 LoadConst (" was suppressed")
65 BuildString (2)
66 CallMethodPositional (1)
67 Pop
2 >> 68 PopBlock
69 EnterFinally
>> 70 WithCleanupStart
71 WithCleanupFinish
72 Jump (9)
>> 73 PopBlock
74 ReturnConst (None)