I am new to python. I have a few questions coming from an armature!
Lawrence D’Oliveiro
lawrencedo99 at gmail.com
Tue Aug 16 03:34:46 EDT 2016
On Tuesday, August 16, 2016 at 6:53:24 PM UTC+12, Jussi Piitulainen wrote:
> Lawrence D’Oliveiro writes:
>
>> Why could this difference be important?
>
> Different comprehensions (pun!) and performance characteristics.
A potential difference in memory usage. When could this be important? Consider a situation where the iterable being mapped is returning records from a database query. If it were a million records, you might not want them all in memory at the same time.
More information about the Python-list
mailing list