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

John Posner jjposner at snet.net
Mon Apr 27 01:20:38 CEST 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