'A list of SQL WHERE filters combined with AND/OR logical operator.'

def __init__(self, *args, **kwargs):

    if ((len(args) == 1) and isinstance(args[0], dict)):
        args[0].pop('operator', None)
        kwargs = dict(args[0], **kwargs)
        args = []
    else:
        args = list(args)
    self.operator = kwargs.pop('operator', AND)
    args.extend((filter(k, v, '=') for (k, v) in kwargs.items()))
    list.__init__(self, args)
