Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80901

Re: Using map()

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <joel.goldstick@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.053
X-Spam-Evidence '*H*': 0.90; '*S*': 0.01; '16,': 0.03; 'builtin': 0.09; 'pavel': 0.09; 'subject:()': 0.09; 'cc:addr:python-list': 0.11; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'checked': 0.32; 'url:python': 0.33; 'received:google.com': 0.35; 'url:listinfo': 0.36; 'useful': 0.36; 'url:org': 0.36; 'list': 0.37; 'nov': 0.38; 'url:mail': 0.40; 'such': 0.63; 'saw': 0.77; 'subject:Using': 0.84; 'joel': 0.91; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=aTS4eQU8dzXfFpXySBCNelQ3E4oiz2ExuLm6bMH19c8=; b=yOZVafSWti5m2k0GvzjKXHG40YEupfUy3vN4qHDnIAj6guKFiMSYt4USs17UfEVhRz En60DhGPv3We6fM1NkavyJ97Gs6pzIdkBu9OmpU5pQEyO2OH+DUpTMUo3BTHfhKjM5QK ngvTayNZUfx1KtychLqwZxr6u5i6vN/Y4KRxaZBPRnSsgjNzBHMkOs/n3RQi3c6Am45L px9UyTH9lIeGbd9RpXaPa+CYI5ku5yYCQokJORePJtYijrOdOJuCc8JfDJcksKShKWXj OC14Z0m4DvHTozMH+B9LdVGa5Xd2cq5qgc5y54zArckDBnTncWm4SV9iIWMWkMgL8l04 yN+A==
MIME-Version 1.0
X-Received by 10.224.111.201 with SMTP id t9mr28967954qap.44.1416170375033; Sun, 16 Nov 2014 12:39:35 -0800 (PST)
In-Reply-To <3b3e245f-c377-4543-b9eb-186e5087103a@lists.xtsubasa.org>
References <3b3e245f-c377-4543-b9eb-186e5087103a@lists.xtsubasa.org>
Date Sun, 16 Nov 2014 15:39:34 -0500
Subject Re: Using map()
From Joel Goldstick <joel.goldstick@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.15898.1416170383.18130.python-list@python.org> (permalink)
Lines 15
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1416170383 news.xs4all.nl 2955 [2001:888:2000:d::a6]:45651
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:80901

Show key headers only | View raw


On Sun, Nov 16, 2014 at 8:01 AM, Pavel Volkov <sailor@lists.xtsubasa.org> wrote:
> I checked my modules with pylint and saw the following warning:
>
> W: 25,29: Used builtin function 'map' (bad-builtin)
>
> Why is the use of map() discouraged?
> It' such a useful thing.
> --
> https://mail.python.org/mailman/listinfo/python-list

I think people now favor list comprehensions.

-- 
Joel Goldstick
http://joelgoldstick.com

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Using map() Joel Goldstick <joel.goldstick@gmail.com> - 2014-11-16 15:39 -0500

csiph-web