Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'messages.': 0.05; 'builtin': 0.09; 'pavel': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:()': 0.09; 'bug': 0.12; 'fine.': 0.16; 'magic': 0.16; 'meanwhile,': 0.16; 'personally,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'vary.': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'received:comcast.net': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'function': 0.29; "doesn't": 0.30; "d'aprano": 0.31; 'steven': 0.31; 'checked': 0.32; 'but': 0.35; 'useful': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'bad': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; "you've": 0.63; 'such': 0.63; 'attention': 0.75; 'saw': 0.77; 'language!': 0.84; 'subject:Using': 0.84; 'was:': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ned Batchelder Subject: Re: Using map() Date: Sun, 16 Nov 2014 19:24:42 -0500 References: <54693cc4$0$13000$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: c-50-133-228-126.hsd1.ma.comcast.net User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: <54693cc4$0$13000$c3e8da3$5496439d@news.astraweb.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1416183892 news.xs4all.nl 2935 [2001:888:2000:d::a6]:35804 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80934 On 11/16/14 7:09 PM, Steven D'Aprano wrote: > Pavel Volkov 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. > > That's a bug in pylint. It's not a bad builtin, it is perfectly fine. > > Some people don't like map. Pay no attention to them. Pylint isn't useful until you've tailored the messages. Personally, I avoid map, but your usage may vary. The pylint message that always irked me was: W0142: Used * or ** magic "magic"? They're features of the language! Meanwhile, it doesn't mind if you write multiply-inherited metaclasses.... -- Ned Batchelder, http://nedbatchelder.com