Vladimir

3%
Flag icon
you could also start from a listcomp, but a genexp (generator expression) 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
Open Preview