Einstein summation notation

Paul Rubin http
Sat Jul 18 00:47:03 EDT 2009


Ethan Furman <ethan at stoneleaf.us> writes:
> Or if any(p for p in [header, body, footer, whatever, ...])

No need for the genexp:

   if any([header, body, footer, whatever, ...])

But, you are using the built-in bool cast either way.



More information about the Python-list mailing list