Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.06; 'odd': 0.07; 'plenty': 0.07; 'next,': 0.09; 'prefixes': 0.09; 'repeated': 0.09; 'spelling': 0.09; 'subject:using': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'line).': 0.16; 'personally,': 0.16; 'roy': 0.16; 'wrote:': 0.18; 'saying': 0.22; 'cc:addr:python.org': 0.22; 'mon,': 0.24; '(or': 0.24; 'cc:2**0': 0.24; 'skip:" 20': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'words': 0.29; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'another': 0.32; 'sense': 0.34; 'common': 0.35; 'received:google.com': 0.35; 'much.': 0.36; 'next': 0.36; 'thank': 0.38; 'rather': 0.38; 'short': 0.38; 'does': 0.39; 'enough': 0.39; 'even': 0.60; 'read': 0.60; 'guy': 0.60; 'more': 0.64; 'smith': 0.68; 'obvious': 0.74; '11:45': 0.84; 'everywhere.': 0.84; 'keystrokes': 0.84; '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=hfyaTMjx0odmkDlM4r2WuoE5qNb/q95GUqYWoGyVkc8=; b=Z3GU5ybVqMet1rx7Q2U1i/xBPQZUSI6R0XLXr5KXEUiNUh9YIgq9yq1e2WrAHJDzyP jsHyZUYtIP9ZmeGoDWIk/MiRgSRuoxcohCnSUsjAvFVG/r4+yKfoxppzscBRGIFdHml4 GNvjC5owZgE8cQlWteQ7KzWjaYGW3kWeH/wIAY2d72XmuYCLwyqpIcHExldCFd5rzFkG t1zPO4DG2EVT6SXjxYxenWEdJBymKErFJ5BJOvprXPIbdHcDSGtAsbJTLU8SGZg0UE4D UoKMDKvBC2htBi9ebTO/IlbCsd9sJw3zhjagd1muJGnnyVolvEAyat39wcN5ZEvileRE 0nnA== MIME-Version: 1.0 X-Received: by 10.42.130.194 with SMTP id w2mr24227062ics.12.1418000429131; Sun, 07 Dec 2014 17:00:29 -0800 (PST) In-Reply-To: References: <004e01d01173$e1641c10$a42c5430$@gmail.com> <5484e3d8$0$13013$c3e8da3$5496439d@news.astraweb.com> Date: Mon, 8 Dec 2014 12:00:29 +1100 Subject: Re: Python Iterables struggling using map() built-in From: Chris Angelico Cc: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1418000441 news.xs4all.nl 2961 [2001:888:2000:d::a6]:59070 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:82090 On Mon, Dec 8, 2014 at 11:45 AM, Roy Smith wrote: >> I take it as "result", which makes plenty of sense to me. > > OK, so spell it out. Three more keystrokes (well, plus another three > when you use it on the next line). And one of them is a vowel; they > don't even cost much. The next guy who has to read your code will thank > you for it. Maybe. Personally, I don't mind the odd abbreviation; they keep the code small enough to eyeball, rather than spelling everything out everywhere. Using "cur" (or "curr") for current, "next" for next, "prev" for previous, as prefixes to a short word saying *what* they're the current/next/previous of, is sufficiently obvious IMO to justify the repeated use of the abbreviation. Why does Python have "int" and "str" rather than "integer" and "string"? Or, worse, "arbitrary_precision_integer" and "unicode_codepoint_string"? Common words get shortened - it's a legit form of Huffman compression. ChrisA