[issue2186] map and filter shouldn't support None as first argument (in Py3k only)
Alexander Belopolsky
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.
Remaining questions:
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.
----------
keywords: +patch
Added file: http://bugs.python.org/file9551/filter.diff
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2186>
__________________________________
More information about the Python-bugs-list
mailing list