[Python-Dev] Challenge about print >> None

Greg Ewing greg@cosc.canterbury.ac.nz
Wed, 13 Sep 2000 13:20:06 +1200 (NZST)

Fredrik Lundh <effbot@telia.com>:

> "map(None, seq)" uses None to indicate that there are really
> no function to map things through.

This one is just as controversial as print>>None. I would
argue that it *doesn't* mean "no function", because that
doesn't make sense -- there always has to be *some* function.
It really means "use a default function which constructs
a tuple from its arguments".

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+