Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed4a.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.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'languages,': 0.04; 'subject:Python': 0.06; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:language': 0.09; 'language.': 0.14; 'mostly': 0.14; 'braces': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject: \n ': 0.16; 'prevent': 0.16; 'language': 0.16; 'wrote:': 0.18; 'things.': 0.19; 'header :User-Agent:1': 0.23; '---': 0.24; 'question': 0.24; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'on,': 0.29; 'scale': 0.29; 'subject:list': 0.30; 'whilst': 0.36; 'expressed': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'users': 0.40; 'skip:u 10': 0.60; 'algorithms': 0.60; 'free': 0.61; 'hardware': 0.61; 'viruses': 0.61; 'course': 0.61; 'first': 0.61; 'protection': 0.63; 'such': 0.63; 'our': 0.64; 'different': 0.65; 'experience.': 0.67; 'side': 0.67; 'antivirus': 0.68; 'designers': 0.74; 'fantastic': 0.74; 'subject:this': 0.83; 'received:2': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list) Date: Sun, 06 Apr 2014 21:56:05 +0100 References: <9daf0806-02de-4447-964c-c8f8953c23e5@googlegroups.com> <5334c38e$0$29994$c3e8da3$5496439d@news.astraweb.com> <53364327$0$29994$c3e8da3$5496439d@news.astraweb.com> <53365F55.2040302@gmail.com> <533836c4$0$29994$c3e8da3$5496439d@news.astraweb.com> <533e811a$0$29993$c3e8da3$5496439d@news.astraweb.com> <874n26su9f.fsf@elektro.pacujo.net> <53418644$0$29993$c3e8da3$5496439d@news.astraweb.com> <87txa643so.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-2-98-192-106.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: <87txa643so.fsf@elektro.pacujo.net> X-Antivirus: avast! (VPS 140406-0, 06/04/2014), Outbound message X-Antivirus-Status: Clean 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1396817791 news.xs4all.nl 2832 [2001:888:2000:d::a6]:42493 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:69784 On 06/04/2014 21:10, Marko Rauhamaa wrote: > > Many classic CS ideas are expressed in terms of an Algol-like language. > Nothing would prevent you from framing those ideas in a Python-like > (pseudo)language. The question is mostly whether you prefer begin/end, > braces or indentation. > Of course whilst all this work in the fields of languages, algorithms and such like has been going on, in parallel engineers have been working on the hardware side of things. My understanding is that some abacuses now have as many as ten strings on them. Although this scale was at first difficult for the users to grasp, the designers came up with the fantastic idea of using different coloured beads on different strings to simplify the user experience. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com