Burak Balasaygun

3%
Flag icon
To initialize tuples, arrays, and other types of sequences, you could also start from a listcomp, but a genexp saves memory because it yields items one by one using the iterator protocol instead of building a whole list just to feed another constructor.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating