On 11/21/2014 08:30 AM, Steven D'Aprano wrote:
But generators and iterators *are the same thing*. (Generator functions are not iterators, but generators themselves are.) Iterators don't have a specific type, but they obey the iterator protocol:
Um, no, they aren't. One cannot 'send()' into any ol' iterator.
-- ~Ethan~