query: python:Difference between Iterables and generator and yield in python?
positive_passages.docid: 6109
positive_passages.text: What does the "yield" keyword do?
negative_passages.docid: 81018
negative_passages.text: Iterator has .next() - is there a way to get the previous element instead of the next one?
negative_passages.docid: 38303
negative_passages.text: Why does this iterative list-growing code give IndexError: list assignment index out of range?
negative_passages.docid: 95726
negative_passages.text: memory-efficient built-in SqlAlchemy iterator/generator?
negative_passages.docid: 148400
negative_passages.text: Recursion or Iteration?
negative_passages.docid: 158075
negative_passages.text: Why does a Python Iterator need an iter method that simply returns self?
negative_passages.docid: 28340
negative_passages.text: Why use iterators instead of array indices?
negative_passages.docid: 123204
negative_passages.text: Why are Exceptions iterable?
negative_passages.docid: 19541
negative_passages.text: What is the best way to iterate over multiple lists at once?
negative_passages.docid: 115471
negative_passages.text: Is there a difference between `continue` and `pass` in a for loop in python?
negative_passages.docid: 39222
negative_passages.text: Is there a difference between return myVar vs. return (myVar)?
negative_passages.docid: 142792
negative_passages.text: What's the difference between iterating over a file with foreach or while in Perl?
negative_passages.docid: 13989
negative_passages.text: What is the difference between IEnumerator and IEnumerable?
negative_passages.docid: 56572
negative_passages.text: Which method performs better: .Any() vs .Count() > 0?
negative_passages.docid: 8719
negative_passages.text: What is the best way to iterate over a dictionary?
negative_passages.docid: 18758
negative_passages.text: Performance Advantages to Iterators?
negative_passages.docid: 7196
negative_passages.text: How do I build a numpy array from a generator?