We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07900f7 commit e18cee4Copy full SHA for e18cee4
src/api/python/z3/z3.py
@@ -54,7 +54,7 @@
54
import math
55
import copy
56
if sys.version_info.major >= 3:
57
- from typing import Iterable
+ from typing import Iterable, Iterator
58
59
from collections.abc import Callable
60
from typing import (
@@ -155,6 +155,8 @@ def _get_args(args):
155
return args[0]
156
elif len(args) == 1 and (isinstance(args[0], set) or isinstance(args[0], AstVector)):
157
return [arg for arg in args[0]]
158
+ elif len(args) == 1 and isinstance(args[0], Iterator):
159
+ return list(args[0])
160
else:
161
return args
162
except TypeError: # len is not necessarily defined when args is not a sequence (use reflection?)
0 commit comments