I have a dict as follows:
someDict = {\'a\':[], \'b\':[]}
I want to determine if this dictionary has any values which are not empty lists.
try this
all([d[i] == [] for i in d])
edit: oops, i think i got you backwards. lets deMorgan that
any([d[i] != [] for i in d])
this second way has the short-circuit advantage on the first anyhow