[Python-Dev] Small any/all enhancement (original) (raw)

Andrew Koenig ark at acm.org
Wed Dec 28 01:45:50 CET 2005


Of course I already knew all the alternatives using map and the generator expression, but I felt like mine was clearer for a reader, this is probably true but not enough to justify the change.

If there is to be any enhancement, I think I would prefer it to be an enhancement to map, so that map's second and subsequent arguments can be sequences or iterables, and its result is an iterable if any of its arguments is an iterable.

Unfortunately, that would be an incompatible change :-(



More information about the Python-Dev mailing list