Skip to content

Commit caef31d

Browse files
committed
Fix: add setter when creating property StopIteration.value.
1 parent 0a83c56 commit caef31d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

graalpython/lib-graalpython/exceptions.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ def StopIteration__repr__(self):
100100
return "StopIteration%s" % repr(self.args)
101101

102102

103-
StopIteration.value = property(StopIteration__value__get)
104-
StopIteration.value.setter(StopIteration__value__set)
103+
StopIteration.value = property(fget=StopIteration__value__get, fset=StopIteration__value__set)
105104
StopIteration.__repr__ = StopIteration__repr__
106105

107106
# These errors are just an alias of OSError (i.e. 'EnvironmentError is OSError == True')

0 commit comments

Comments
 (0)