Mapping None. Why?
David C. Ullrich
dullrich at sprynet.com
Fri Jun 13 13:04:31 EDT 2008
In article
<d5897630-558e-428a-9bab-e0c9c1de7ba6 at j22g2000hsf.googlegroups.com>,
Paddy <paddy3118 at googlemail.com> wrote:
> On Jun 13, 12:49 pm, David C. Ullrich <dullr... at sprynet.com> wrote:
> > On Thu, 12 Jun 2008 12:05:02 -0700 (PDT), Paddy
> >
> > <paddy3... at googlemail.com> wrote:
> >
> > >Iam wondering why the peculiar behavior of map when the function in
> > >given as None:
> >
> > If you start with a value x and then apply no function
> > at all to it, what results is x.
> >
> > David C. Ullrich
>
> True, but None is not a function. It's a sentinel value to turn on the
> functionality.
Uh, thanks. I think I knew that - I was just suggesting why
the way map works makes sense.
> - Paddy.
--
David C. Ullrich
More information about the Python-list
mailing list