[issue2186] map and filter shouldn't support None as first argument (in Py3k only)
Raymond Hettinger
report at bugs.python.org
Wed Mar 12 23:24:42 CET 2008
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
Okay, thanks. Though, I should have also mentioned symmetries with
sorted(), min(), and max() which all take the iterable first and follow
with an optional key function.
Closing this one. The map(None, *args) feature was removed for 3.0.
Have decided to leave None in ifilter() and ifilterfalse() since None is
the preferred way to spell a default argument and having to pass "bool"
feels awkward and clunky. Switching the argument order was shot down, so
will just leave it as-is.
Marked resolution as "accepted" since the map(None) suggestion went in.
----------
resolution: -> accepted
status: open -> closed
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2186>
__________________________________
More information about the Python-bugs-list
mailing list