Ethan Furman <et...@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. -- http://mail.python.org/mailman/listinfo/python-list