Re: Mapping None. Why?
On Fri, Jun 13, 2008 at 2:00 PM, Terry Reedy <tjreedy@udel.e duwrote:
Another way of viewing it is that filter(None, iterable) applies no
function at all before testing the truth values, which does make some
sense. With map, however, this is not strictly true.
On Fri, Jun 13, 2008 at 2:00 PM, Terry Reedy <tjreedy@udel.e duwrote:
filter(None, iterable) works the same way: None-identity function,
The immediate reason is the Python has no builtin id().
But apparently there is also historical precedent in the functional
community for this convention.
The immediate reason is the Python has no builtin id().
But apparently there is also historical precedent in the functional
community for this convention.
function at all before testing the truth values, which does make some
sense. With map, however, this is not strictly true.
Comment