Skip to content

is_iter() in search only works for tuples and lists #30

Description

@xlotlu

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions