I think the most obvious implementation of "return True if the list has entries and False otherwise" is in order of most to least obvious:
return len(changed) == 0 return bool(changed) return True if changed else False
The fact that bool(changed) is "so slow" is unfortunate.
I think I'll go with len(changed) == 0
« Back to merge proposal
I think the most obvious implementation of "return True if the list has entries and False otherwise" is in order of most to least obvious:
return len(changed) == 0
return bool(changed)
return True if changed else False
The fact that bool(changed) is "so slow" is unfortunate.
I think I'll go with len(changed) == 0