Skip to content

Commit b7fa690

Browse files
committed
[GR-31314] Avoid using exception for terminating returns.
PullRequest: graalpython/1837
2 parents c0f9603 + 769e138 commit b7fa690

File tree

296 files changed

+12818
-15636
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

296 files changed

+12818
-15636
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_return.py

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,58 @@ def method(v):
5151

5252
assert method(10) is None
5353
assert method("value") is None
54+
55+
def test_return_in_finally():
56+
def override_explicit():
57+
try:
58+
return 0
59+
finally:
60+
return 42
61+
62+
def override_implicit():
63+
try:
64+
pass
65+
finally:
66+
return 'correct'
67+
68+
assert override_explicit() == 42
69+
assert override_implicit() == 'correct'
70+
71+
def test_return_in_try():
72+
def basic(arg):
73+
try:
74+
if arg:
75+
raise ValueError()
76+
return 1 # can be 'terminating'
77+
except ValueError as e:
78+
return 2 # can be 'terminating'
79+
80+
assert basic(True) == 2
81+
assert basic(False) == 1
82+
83+
def with_orelse(arg):
84+
try:
85+
if arg:
86+
return 'try'
87+
except:
88+
pass
89+
else:
90+
return 'else'
91+
92+
assert with_orelse(True) == 'try'
93+
assert with_orelse(False) == 'else'
94+
95+
96+
def test_return_in_try_finally():
97+
def foo(arg):
98+
try:
99+
if arg:
100+
raise ValueError()
101+
return 'try'
102+
except ValueError as e:
103+
return 'except'
104+
finally:
105+
return 'finally'
106+
107+
assert foo(True) == 'finally'
108+
assert foo(False) == 'finally'

graalpython/com.oracle.graal.python.test/testData/goldenFiles/AssignmentTests/annotationType02.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ ModuleRootNode Name: <module 'annotationType02'> SourceSection: [0,28]`def fn():
4040
IntegerLiteralNode SourceSection: [26,27]`0`
4141
Value: 0
4242
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
43-
Frame: [1,<return_val>,Illegal]
43+
Frame: [1,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/AssignmentTests/assignment06.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ ModuleRootNode Name: <module 'assignment06'> SourceSection: [0,29]`def fn():↵
6161
ReadLocalVariableNodeGen SourceSection: None
6262
Frame: [4,<>temp4,Illegal]
6363
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
64-
Frame: [5,<return_val>,Illegal]
64+
Frame: [5,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/AssignmentTests/assignment07.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ ModuleRootNode Name: <module 'assignment07'> SourceSection: [0,29]`def fn():↵
6868
ReadLocalVariableNodeGen SourceSection: None
6969
Frame: [5,<>temp5,Illegal]
7070
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
71-
Frame: [6,<return_val>,Illegal]
71+
Frame: [6,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/AssignmentTests/augassign13.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ ModuleRootNode Name: <module 'augassign13'> SourceSection: [0,17]`def fn (): x +
4444
Value: 3
4545
ObjectLiteralNode SourceSection: None
4646
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
47-
Frame: [1,<return_val>,Illegal]
47+
Frame: [1,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/AssignmentTests/augassign14.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ ModuleRootNode Name: <module 'augassign14'> SourceSection: [0,61]`def _method(*a
6767
ReadLocalVariableNodeGen SourceSection: None
6868
Frame: [5,<>temp5,Illegal]
6969
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
70-
Frame: [6,<return_val>,Illegal]
70+
Frame: [6,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/AwaitAndAsyncTests/asyncFor01.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ ModuleRootNode Name: <module 'asyncFor01'> SourceSection: [0,39]`async def f():
4848
PythonObjectFactoryNodeGen SourceSection: None
4949
BlockNode SourceSection: None
5050
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
51-
Frame: [1,<return_val>,Illegal]
51+
Frame: [1,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/AwaitAndAsyncTests/asyncFor02.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ ModuleRootNode Name: <module 'asyncFor02'> SourceSection: [0,42]`async def f():
6262
PythonObjectFactoryNodeGen SourceSection: None
6363
BlockNode SourceSection: None
6464
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
65-
Frame: [4,<return_val>,Illegal]
65+
Frame: [4,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/AwaitAndAsyncTests/asyncWith01.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ ModuleRootNode Name: <module 'asyncWith01'> SourceSection: [0,34]`async def f():
4646
YesNodeGen SourceSection: None
4747
GetClassNodeGen SourceSection: None
4848
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
49-
Frame: [0,<return_val>,Illegal]
49+
Frame: [0,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/AwaitAndAsyncTests/asyncWith02.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ ModuleRootNode Name: <module 'asyncWith02'> SourceSection: [0,47]`async def f():
6363
YesNodeGen SourceSection: None
6464
GetClassNodeGen SourceSection: None
6565
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
66-
Frame: [2,<return_val>,Illegal]
66+
Frame: [2,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/AwaitAndAsyncTests/await01.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ ModuleRootNode Name: <module 'await01'> SourceSection: [0,28]`async def f():↵
4141
Identifier: smth
4242
ReadAttributeFromObjectNotTypeNodeGen SourceSection: None
4343
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
44-
Frame: [0,<return_val>,Illegal]
44+
Frame: [0,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/AwaitAndAsyncTests/await02.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ ModuleRootNode Name: <module 'await02'> SourceSection: [0,34]`async def f():↵
4343
Identifier: smth
4444
ReadAttributeFromObjectNotTypeNodeGen SourceSection: None
4545
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
46-
Frame: [1,<return_val>,Illegal]
46+
Frame: [1,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/AwaitAndAsyncTests/await03.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ ModuleRootNode Name: <module 'await03'> SourceSection: [0,39]`async def f():↵
5757
ReadLocalVariableNodeGen SourceSection: None
5858
Frame: [3,<>temp3,Illegal]
5959
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
60-
Frame: [4,<return_val>,Illegal]
60+
Frame: [4,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/AwaitAndAsyncTests/await04.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ ModuleRootNode Name: <module 'await04'> SourceSection: [0,30]`async def f():↵
4141
Identifier: smth
4242
ReadAttributeFromObjectNotTypeNodeGen SourceSection: None
4343
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
44-
Frame: [0,<return_val>,Illegal]
44+
Frame: [0,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/AwaitAndAsyncTests/await05.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ ModuleRootNode Name: <module 'await05'> SourceSection: [0,35]`async def f():↵
4646
Identifier: smth
4747
ReadAttributeFromObjectNotTypeNodeGen SourceSection: None
4848
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
49-
Frame: [0,<return_val>,Illegal]
49+
Frame: [0,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/AwaitAndAsyncTests/await06.tast

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ ModuleRootNode Name: <module 'await06'> SourceSection: [0,38]`async def f():↵
4141
Identifier: foo
4242
ReadAttributeFromObjectNotTypeNodeGen SourceSection: None
4343
FrameReturnNode SourceSection: [29,38]`return 42`
44-
WriteLocalVariableNodeGen SourceSection: None
45-
Identifier: <return_val>
46-
Frame: [0,<return_val>,Illegal]
47-
IntegerLiteralNode SourceSection: [36,38]`42`
48-
Value: 42
44+
IntegerLiteralNode SourceSection: [36,38]`42`
45+
Value: 42
4946
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
50-
Frame: [0,<return_val>,Illegal]
47+
Frame: [0,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/assert02.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ ModuleRootNode Name: <module 'assert02'> SourceSection: [0,59]`def avg(marks):
5454
Value: 0
5555
StringLiteralNode SourceSection: [43,59]`"List is empty."`
5656
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
57-
Frame: [1,<return_val>,Illegal]
57+
Frame: [1,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/assert03.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ ModuleRootNode Name: <module 'assert03'> SourceSection: [0,47]`def avg():↵
5151
Identifier: len
5252
ReadAttributeFromObjectNotTypeNodeGen SourceSection: None
5353
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
54-
Frame: [0,<return_val>,Illegal]
54+
Frame: [0,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/call17.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ ModuleRootNode Name: <module 'call17'> SourceSection: [0,22]`def fn(): foo(arg =
4747
Identifier: foo
4848
ReadAttributeFromObjectNotTypeNodeGen SourceSection: None
4949
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
50-
Frame: [0,<return_val>,Illegal]
50+
Frame: [0,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/call18.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ ModuleRootNode Name: <module 'call18'> SourceSection: [0,35]`def fn(arg = [1,2])
6161
Identifier: foo
6262
ReadAttributeFromObjectNotTypeNodeGen SourceSection: None
6363
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
64-
Frame: [1,<return_val>,Illegal]
64+
Frame: [1,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/call19.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ ModuleRootNode Name: <module 'call19'> SourceSection: [0,33]`def fn(): "in".form
4545
GetCallAttributeNodeGen SourceSection: None
4646
StringLiteralNode SourceSection: [10,14]`"in"`
4747
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
48-
Frame: [0,<return_val>,Illegal]
48+
Frame: [0,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/call20.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ ModuleRootNode Name: <module 'call20'> SourceSection: [0,36]`def fn(name): "in".
5252
GetCallAttributeNodeGen SourceSection: None
5353
StringLiteralNode SourceSection: [14,18]`"in"`
5454
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
55-
Frame: [1,<return_val>,Illegal]
55+
Frame: [1,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/for04.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ ModuleRootNode Name: <module 'for04'> SourceSection: [0,59]`def fn():↵ for x
6060
Value: 3
6161
BlockNode SourceSection: None
6262
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
63-
Frame: [1,<return_val>,Illegal]
63+
Frame: [1,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/for12.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ ModuleRootNode Name: <module 'for12'> SourceSection: [0,52]`def fn():↵ for a,
8080
PythonObjectFactoryNodeGen SourceSection: None
8181
BlockNode SourceSection: None
8282
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
83-
Frame: [4,<return_val>,Illegal]
83+
Frame: [4,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/for13.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,4 @@ ModuleRootNode Name: <module 'for13'> SourceSection: [0,186]`def format(self):
111111
Frame: [0,self,Illegal]
112112
BlockNode SourceSection: None
113113
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
114-
Frame: [7,<return_val>,Illegal]
114+
Frame: [7,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/for14.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ ModuleRootNode Name: <module 'for14'> SourceSection: [0,165]`def merge(sequences
8383
Frame: [0,sequences,Illegal]
8484
BlockNode SourceSection: None
8585
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
86-
Frame: [3,<return_val>,Illegal]
86+
Frame: [3,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/for15.tast

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,7 @@ ModuleRootNode Name: <module 'for15'> SourceSection: [0,87]`def formatyear():↵
6363
ReadAttributeFromObjectNotTypeNodeGen SourceSection: None
6464
BlockNode SourceSection: None
6565
FrameReturnNode SourceSection: [78,87]`return 10`
66-
WriteLocalVariableNodeGen SourceSection: None
67-
Identifier: <return_val>
68-
Frame: [4,<return_val>,Illegal]
69-
IntegerLiteralNode SourceSection: [85,87]`10`
70-
Value: 10
66+
IntegerLiteralNode SourceSection: [85,87]`10`
67+
Value: 10
7168
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
72-
Frame: [4,<return_val>,Illegal]
69+
Frame: [4,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/if04.tast

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,8 @@ ModuleRootNode Name: <module 'if04'> SourceSection: [0,53]`predicate = func if .
5252
ReadIndexedArgumentNodeGen SourceSection: None
5353
Index: 0
5454
FrameReturnNode SourceSection: None
55-
FunctionBodyNode SourceSection: [52,53]`a`
56-
WriteLocalVariableNodeGen SourceSection: None
57-
Identifier: <return_val>
58-
Frame: [1,<return_val>,Illegal]
59-
ReadLocalVariableNodeGen SourceSection: [52,53]`a`
60-
Frame: [0,a,Illegal]
55+
LambdaBodyNode SourceSection: [52,53]`a`
56+
ReadLocalVariableNodeGen SourceSection: [52,53]`a`
57+
Frame: [0,a,Illegal]
6158
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
62-
Frame: [1,<return_val>,Illegal]
59+
Frame: [1,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/issueGR28345.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ ModuleRootNode Name: <module 'issueGR28345'> SourceSection: [0,187]`def test_isi
5252
Identifier: self
5353
ReadAttributeFromObjectNotTypeNodeGen SourceSection: None
5454
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
55-
Frame: [0,<return_val>,Illegal]
55+
Frame: [0,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/simpleExpression08.tast

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ FunctionRootNode SourceSection: [0,8]`"\uD800"`
1111
InnerRootNode SourceSection: None
1212
ReturnTargetNode SourceSection: None
1313
Body: FrameReturnNode SourceSection: None
14-
WriteLocalVariableNodeGen SourceSection: None
15-
Identifier: <return_val>
16-
Frame: [0,<return_val>,Illegal]
17-
StringLiteralNode SourceSection: [0,8]`"\uD800"`
14+
StringLiteralNode SourceSection: [0,8]`"\uD800"`
1815
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
19-
Frame: [0,<return_val>,Illegal]
16+
Frame: [0,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/try03.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ ModuleRootNode Name: <module 'try03'> SourceSection: [0,61]`def fn():↵ try:
4949
ReadAttributeFromObjectNotTypeNodeGen SourceSection: None
5050
BlockNode SourceSection: None
5151
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
52-
Frame: [1,<return_val>,Illegal]
52+
Frame: [1,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/try10.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@ ModuleRootNode Name: <module 'try10'> SourceSection: [0,214]`def divide(x, y):
8585
ReadAttributeFromObjectNotTypeNodeGen SourceSection: None
8686
StringLiteralNode SourceSection: [187,213]`"executing finally c...`
8787
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
88-
Frame: [3,<return_val>,Illegal]
88+
Frame: [3,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/try11.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ ModuleRootNode Name: <module 'try11'> SourceSection: [0,79]`def fn():↵ try:
5555
ReadAttributeFromObjectNotTypeNodeGen SourceSection: None
5656
BlockNode SourceSection: None
5757
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
58-
Frame: [1,<return_val>,Illegal]
58+
Frame: [1,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/with03.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ ModuleRootNode Name: <module 'with03'> SourceSection: [0,35]`def fn():↵ with
5252
YesNodeGen SourceSection: None
5353
GetClassNodeGen SourceSection: None
5454
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
55-
Frame: [1,<return_val>,Illegal]
55+
Frame: [1,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/with04.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ ModuleRootNode Name: <module 'with04'> SourceSection: [0,45]`def fn():↵ with
6767
YesNodeGen SourceSection: None
6868
GetClassNodeGen SourceSection: None
6969
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
70-
Frame: [2,<return_val>,Illegal]
70+
Frame: [2,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/with05.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ ModuleRootNode Name: <module 'with05'> SourceSection: [0,36]`def fn():↵ with
5050
YesNodeGen SourceSection: None
5151
GetClassNodeGen SourceSection: None
5252
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
53-
Frame: [0,<return_val>,Illegal]
53+
Frame: [0,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/with06.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ ModuleRootNode Name: <module 'with06'> SourceSection: [0,56]`def fn():↵ with
6767
YesNodeGen SourceSection: None
6868
GetClassNodeGen SourceSection: None
6969
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
70-
Frame: [2,<return_val>,Illegal]
70+
Frame: [2,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/ClassDefTests/classDef05.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ ModuleRootNode Name: <module 'classDef05'> SourceSection: [0,63]`def fn():↵ c
8888
Identifier: modname
8989
ReadAttributeFromObjectNotTypeNodeGen SourceSection: None
9090
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
91-
Frame: [1,<return_val>,Illegal]
91+
Frame: [1,<return_val>,Object]

graalpython/com.oracle.graal.python.test/testData/goldenFiles/ClassDefTests/classDef07.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ ModuleRootNode Name: <module 'classDef07'> SourceSection: [0,106]`class OrderedD
110110
Identifier: dict
111111
ReadAttributeFromObjectNotTypeNodeGen SourceSection: None
112112
Return Expresssion: ReadLocalVariableNodeGen SourceSection: None
113-
Frame: [1,<return_val>,Illegal]
113+
Frame: [1,<return_val>,Object]
114114
Return Expresssion: ObjectLiteralNode SourceSection: None
115115
StringLiteralNode SourceSection: None
116116
ReadNameNodeGen SourceSection: [18,22]`dict`

0 commit comments

Comments
 (0)