Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!roy From: Roy Smith Newsgroups: comp.lang.python Subject: Re: Python Iterables struggling using map() built-in Date: Sun, 07 Dec 2014 19:45:32 -0500 Organization: PANIX Public Access Internet and UNIX, NYC Lines: 16 Message-ID: References: <004e01d01173$e1641c10$a42c5430$@gmail.com> <5484e3d8$0$13013$c3e8da3$5496439d@news.astraweb.com> NNTP-Posting-Host: localhost X-Trace: reader1.panix.com 1417999533 7763 127.0.0.1 (8 Dec 2014 00:45:33 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Mon, 8 Dec 2014 00:45:33 +0000 (UTC) User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Xref: csiph.com comp.lang.python:82089 In article , Chris Angelico wrote: > > Next problem, what the heck is "res"? We're not back in the punch-card > > days. We don't have to abbreviate variable names to save columns. > > Variable names are supposed to describe what they hold, and thus help > > you understand the code. I have no idea what "res" is supposed to be. > > Residue? Result? Rest_of_items? Response? None of these make much > > sense here, so I'm just left befuddled. > > 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.