[issue17887] docs: summary page - generator vs iterator vs iterable

2020-11-17 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker ___ _

[issue17887] docs: summary page - generator vs iterator vs iterable

2013-05-04 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti type: -> enhancement versions: +Python 2.7, Python 3.3, Python 3.4 ___ Python tracker ___ __

[issue17887] docs: summary page - generator vs iterator vs iterable

2013-05-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: To make the subset relationships clear in the iterable entry, perhaps replace See also iterator, sequence, and generator. with Some iterables are iterators and some iterators are generators. Some iterables are sequences. For details, see iterator, sequence,

[issue17887] docs: summary page - generator vs iterator vs iterable

2013-05-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Briefly, An iterable is an object that can be iterated with an iterator. An iterator is an iterable that responds to next() calls, including the implicit calls in a for statement. A generator is an iterator created by a generator function, which is a function w

[issue17887] docs: summary page - generator vs iterator vs iterable

2013-04-30 Thread anatoly techtonik
New submission from anatoly techtonik: Docs lack a good summary page comparing three concepts. The main question is how do I tell if something is a sequence, generator, iterator or iterable? I found myself puzzled that range() is neither generator or iterator. -- assignee: docs@python