I am new to python. I have a few questions coming from an armature!
Jussi Piitulainen
jussi.piitulainen at helsinki.fi
Tue Aug 16 03:46:04 EDT 2016
Lawrence D’Oliveiro writes:
> 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.
That's what I meant by different performance characteristics, and I
agree that it's an important difference.
More information about the Python-list
mailing list