This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients docs@python, techtonik, terry.reedy
Date 2013-05-03.23:42:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1367624521.32.0.89480795063.issue17887@psf.upfronthosting.co.za>
In-reply-to
Content
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 with a yield keyword in its body.
A sequence is an iterable with minimal sequence methods.

The four terms are all in the glossary. The entry for iterable already points to the other three. What do you think is missing?

A range (as documented) is an immutable sequence.
History
Date User Action Args
2013-05-03 23:42:01terry.reedysetrecipients: + terry.reedy, techtonik, docs@python
2013-05-03 23:42:01terry.reedysetmessageid: <1367624521.32.0.89480795063.issue17887@psf.upfronthosting.co.za>
2013-05-03 23:42:01terry.reedylinkissue17887 messages
2013-05-03 23:42:01terry.reedycreate