[Python-ideas] Generators are iterators

Chris Barker chris.barker at noaa.gov
Fri Dec 12 20:45:24 CET 2014


On Fri, Dec 12, 2014 at 11:41 AM, Alexander Belopolsky <
alexander.belopolsky at gmail.com> wrote:
>
>
> On Fri, Dec 12, 2014 at 12:16 PM, Chris Barker <chris.barker at noaa.gov>
> wrote:
>
>> 2) there are a number of TIPPS in the standard library: things like
>> tupleiterator and friends, the range object, etc.
>
>
> The range object is not an iterator
>

indeed -- sorry about that -- the "rangeiterator" object, that is. The
point here is that there are a bunch of builtin types that are TIIPs


> Please don't confuse iterators and iterables:
>

indeed, that is a distinction that should be kept clear.

Thanks
   -Chris



-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20141212/ed8c2c65/attachment.html>


More information about the Python-ideas mailing list