Open xlotlu opened 8 years ago
search.is_iter returns False for sets (and others). A more appropriate implementation would be:
from collections import Iterable try: basestring except NameError: basestring = str def is_iter(val): return not isinstance(val, basestring) and isinstance(val, Iterable)
Could you provide a pull request and a small test?
search.is_iter returns False for sets (and others). A more appropriate implementation would be: