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
You can use ternary "if" operator. Google says it supported since 2.5
foo = True if your_list else False