[PATCH] keyword: replace map() with list comprehension

Christian Ebert blacktrash at gmx.net
Sun Jan 21 05:27:37 EST 2018


* Yuya Nishihara on Sunday, January 21, 2018 at 11:46:12 +0900
> On Sat, 20 Jan 2018 14:46:49 +0100, Christian Ebert wrote:
>> * Yuya Nishihara on Saturday, January 20, 2018 at 21:29:37 +0900
>>> On Sat, 20 Jan 2018 12:00:00 +0100, Christian Ebert wrote:
>>>> keyword: replace map() with list comprehension
>>> 
>>> for what?
>> 
>> I was under the impression that this is (considered) faster?
> 
> Their performance characteristics wouldn't differ. It's rather a cosmetic issue
> whether to use map() or not. Personally I like map() when it can get rid of
> a parameter.

Me too, actually. Let's leave it at that then. Thanks for the 
feedback.

-- 
LAST SHIP HOME
Die Weltumsegelung der Peter von Danzig
Ein Film von Michael Weber und Christian Ebert
--->> https://lastshiphome.de


More information about the Mercurial-devel mailing list