Skip to content

Commit 0093157

Browse files
Phillip SchanelyNikolajBjorner
Phillip Schanely
authored andcommitted
Handle dynamic sort of Nth()'s return value in the Python API
1 parent e89bb37 commit 0093157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/python/z3/z3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9976,7 +9976,7 @@ def __radd__(self, other):
99769976
def __getitem__(self, i):
99779977
if _is_int(i):
99789978
i = IntVal(i, self.ctx)
9979-
return SeqRef(Z3_mk_seq_nth(self.ctx_ref(), self.as_ast(), i.as_ast()), self.ctx)
9979+
return _to_expr_ref(Z3_mk_seq_nth(self.ctx_ref(), self.as_ast(), i.as_ast()), self.ctx)
99809980

99819981
def at(self, i):
99829982
if _is_int(i):

0 commit comments

Comments
 (0)