3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-27 10:55:50 +00:00
This commit is contained in:
Nikolaj Bjorner 2016-09-02 03:05:23 -07:00
commit 424a8c69bd
38 changed files with 473 additions and 216 deletions

View file

@ -118,6 +118,8 @@ def _get_args(args):
try:
if len(args) == 1 and (isinstance(args[0], tuple) or isinstance(args[0], list)):
return args[0]
elif len(args) == 1 and isinstance(args[0], set):
return [arg for arg in args[0]]
else:
return args
except: # len is not necessarily defined when args is not a sequence (use reflection?)