Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #4087
| From | Hans Georg Schaathun <hg@schaathun.net> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: De-tupleizing a list |
| Date | 2011-04-26 21:58 +0100 |
| Organization | University of Bergen |
| Message-ID | <c8oj88-c02.ln1@svn.schaathun.net> (permalink) |
| References | (1 earlier) <4db6514e$0$29978$c3e8da3$5496439d@news.astraweb.com> <4cb20ed0-c766-4bd8-8d00-762208d92d14@r33g2000prh.googlegroups.com> <mailman.856.1303842605.9059.python-list@python.org> <uflj88-3t1.ln1@svn.schaathun.net> <mailman.872.1303849587.9059.python-list@python.org> |
On Tue, 26 Apr 2011 13:37:40 -0700, Ethan Furman <ethan@stoneleaf.us> 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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
De-tupleizing a list Gnarlodious <gnarlodious@gmail.com> - 2011-04-25 20:28 -0700
Re: De-tupleizing a list CM <cmpython@gmail.com> - 2011-04-25 20:42 -0700
Re: De-tupleizing a list Gnarlodious <gnarlodious@gmail.com> - 2011-04-25 20:52 -0700
Re: De-tupleizing a list "Littlefield, Tyler" <tyler@tysdomain.com> - 2011-04-25 21:38 -0600
Re: De-tupleizing a list Philip Semanchuk <philip@semanchuk.com> - 2011-04-25 23:38 -0400
Re: De-tupleizing a list Paul Rubin <no.email@nospam.invalid> - 2011-04-25 21:08 -0700
Re: De-tupleizing a list John Connor <john.theman.connor@gmail.com> - 2011-04-25 23:29 -0500
Re: De-tupleizing a list Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-04-26 04:59 +0000
Re: De-tupleizing a list rusi <rustompmody@gmail.com> - 2011-04-25 22:26 -0700
Re: De-tupleizing a list Gnarlodious <gnarlodious@gmail.com> - 2011-04-26 05:19 -0700
Re: De-tupleizing a list Algis Kabaila <akabaila@pcug.org.au> - 2011-04-27 04:30 +1000
Re: De-tupleizing a list Hans Georg Schaathun <hg@schaathun.net> - 2011-04-26 21:11 +0100
Re: De-tupleizing a list Ethan Furman <ethan@stoneleaf.us> - 2011-04-26 13:37 -0700
Re: De-tupleizing a list Hans Georg Schaathun <hg@schaathun.net> - 2011-04-26 21:58 +0100
Re: De-tupleizing a list Raymond Hettinger <python@rcn.com> - 2011-04-26 14:16 -0700
Re: De-tupleizing a list John Pinner <funthyme@gmail.com> - 2011-04-27 03:56 -0700
Re: De-tupleizing a list Algis Kabaila <akabaila@pcug.org.au> - 2011-04-28 05:31 +1000
csiph-web