[issue2186] map and filter shouldn't support None as first argument (in Py3k only)
report at bugs.python.org
Mon Feb 25 16:52:56 CET 2008
Alexander Belopolsky added the comment:
Attached patch removes support for None from filter and
itertools.ifilter. My objections for removing that from map do not
apply because bool function can be used instead of None in filter
achieving similar performance and better clarity.
None support was apparently removed from map in r60206.
1. map(None,), filter(None,) and in fact map(anything,) still
work. I don't think that needs to be fixed.
2. Should None support be removed from itertools.ifilterfalse? I would
guess yes, unless it is going away.
Added file: http://bugs.python.org/file9551/filter.diff
Tracker <report at bugs.python.org>
More information about the Python-bugs-list