| Store | Cart

[Python-Dev] future_builtins (was: Backporting PEP 3127 to trunk)

From: Neal Norwitz <nnor...@gmail.com>
Sat, 23 Feb 2008 17:59:41 -0800
On Sat, Feb 23, 2008 at 8:06 AM, Guido van Rossum <guido at python.org> wrote:
>>  I do think map() and filter() should issue a warning under -3 when the>  first arg is None. (Or does 2to3 detect this now?)

What's wrong with filter(None, seq)?  That currently works in 3k:

>>> filter(None, range(5))
<itertools.ifilter object at 0x2b5be60da450>
>>> [x for x in _]
[1, 2, 3, 4]

(Side note, shouldn't we change the names for filter/map?)

n

Recent Messages in this Thread
Eric Smith Feb 21, 2008 10:26 pm
Guido van Rossum Feb 21, 2008 10:31 pm
Eric Smith Feb 22, 2008 07:30 pm
Georg Brandl Feb 23, 2008 10:57 am
Eric Smith Feb 23, 2008 02:06 pm
Guido van Rossum Feb 23, 2008 04:06 pm
Eric Smith Feb 23, 2008 05:01 pm
Guido van Rossum Feb 23, 2008 07:11 pm
Eric Smith Feb 23, 2008 07:34 pm
Guido van Rossum Feb 23, 2008 08:52 pm
Neal Norwitz Feb 24, 2008 01:59 am
Guido van Rossum Feb 25, 2008 02:57 am
Neal Norwitz Feb 25, 2008 03:02 am
Guido van Rossum Feb 25, 2008 04:01 am
Collin Winter Feb 24, 2008 10:30 pm
Guido van Rossum Feb 23, 2008 03:34 pm
Neal Norwitz Feb 22, 2008 04:47 am
Messages in this thread