A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2008-February/077194.html below:

Backporting PEP 3127 to trunk)

[Python-Dev] future_builtins (was: Backporting PEP 3127 to trunk)Guido van Rossum guido at python.org
Mon Feb 25 03:57:14 CET 2008
On Sat, Feb 23, 2008 at 5:59 PM, Neal Norwitz <nnorwitz at gmail.com> wrote:
> 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]

But that's a bug -- it's been spec'ed that this will stop working.
(Can't remember where, perhaps PEP 3100?)

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

Huh? What? Why?

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4