I have a dict as follows:
someDict = {\'a\':[], \'b\':[]}
I want to determine if this dictionary has any values which are not empty lists.
Not falsey or not empty lists:
Not falsey:
any(someDict.values())
Not empty lists:
any(a != [] for a in someDict.values())
or
any(map(lambda x: x != [], someDict.values()))
Or if you are ok with a falsey return value:
filter(lambda x: x != [], someDict.values())
Returns a list of items that are not empty lists, so if they are all empty lists it's an empty list :)