Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!goblin2!goblin.stu.neva.ru!newsfeed1.swip.net!uio.no!nntp.uib.no!svn.schaathun.net!not-for-mail From: Hans Georg Schaathun Newsgroups: comp.lang.python Subject: Re: De-tupleizing a list Date: Tue, 26 Apr 2011 21:58:20 +0100 Organization: University of Bergen Lines: 22 Message-ID: References: <8dcab23b-6e38-41d0-9591-ef3cbfdbd589@a21g2000prj.googlegroups.com> <4db6514e$0$29978$c3e8da3$5496439d@news.astraweb.com> <4cb20ed0-c766-4bd8-8d00-762208d92d14@r33g2000prh.googlegroups.com> NNTP-Posting-Host: vannskorpion.bccs.uib.no X-Trace: toralf.uib.no 1303851125 14206 129.177.20.20 (26 Apr 2011 20:52:05 GMT) X-Complaints-To: abuse@uib.no NNTP-Posting-Date: 26 Apr 2011 20:52:05 GMT User-Agent: slrn/pre1.0.0-18 (Linux) Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:4087 On Tue, 26 Apr 2011 13:37:40 -0700, Ethan Furman wrote: : Hans Georg Schaathun wrote: : > List comprehension is understood even by readers with no experience : > with python. : : There's nothing magically understandable about a list comp -- the first : time I saw one (which was in Python), I had to learn about them. Well, there is a first time for everything. For all the other proposals, the first time is bound to be in python. List comprehension is found in many languages, as just list comprehension, and rather quickly comprehensible by analogy to anyone familiar with set comprehension in mathematics. The syntax is slightly different, but python's use of plain English keywords make the transission fairly simple. (-: and I did not say by /all/ readers :-) -- :-- Hans Georg