From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b4a4dceda94869d2 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.73.233 with SMTP id o9mr1522841pbv.8.1320829359346; Wed, 09 Nov 2011 01:02:39 -0800 (PST) Path: h5ni15884pba.0!nntp.google.com!news2.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Iterators in Ada2012 Date: Wed, 09 Nov 2011 09:02:38 +0000 Organization: A noiseless patient Spider Message-ID: References: <66dbca36-0248-458a-aff4-1176d6ce098b@m10g2000vbc.googlegroups.com> <4eb92ae0$0$6581$9b4e6d93@newsspool3.arcor-online.net> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="9977"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+k7rLY9F0kSq136UwxzOz+ENDAOUdLLwo=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (darwin) Cancel-Lock: sha1:FJkPx7EH4kR0frCi3PXJd8jT0ik= sha1:SMleLRt1R2Yze0oDfgkpzSg6yQI= Xref: news2.google.com comp.lang.ada:14367 Content-Type: text/plain; charset=us-ascii Date: 2011-11-09T09:02:38+00:00 List-Id: "R. Tyler Croy" writes: > The reasons things like list comprehensions and generator expressions > are recommended in Python is because they're faster in the CPython > implementation of the language since they get to native C "faster" > (with less interpretation and bytecode). I had no idea that list comprehensions were faster (I have no idea whether Mac OS X's native Python is a CPython implementation!), I used them because they are so expressive!