and [True,True] --> [True, True]?????

John Posner jjposner at snet.net
Sun Apr 26 19:20:38 EDT 2009


Arnaud Delobelle wrote:
>>   return any( not val for val in value_list )
>>     
>
> This is the same as:
>
>     return not all(value_list)
>
>   
Yes, I should have remembered De Morgan's Theorem. Thanks!

-John




More information about the Python-list mailing list