What is the most effective way to check if a list contains only empty values (not if a list is empty, but a list of empty elements)? I am using the famously pythonic implicit booleaness method in a for loop:
def checkEmpty(lst):
for element in lst:
if element:
return False
break
else:
return True
Anything better around?