what is the best way to turn a list into bool value? I am looking for something like:
return eval_bool(my_list)
I have a custom container i
Just use:
bool(my_list)
Which evaluates it as Python "truthiness" and returns a real Boolean.