[SciPy-user] How to start with SciPy and NumPy

Sturla Molden sturla at molden.no
Mon Jan 26 11:40:50 EST 2009


> On Tue, Jan 27, 2009 at 1:16 AM, Sturla Molden <sturla at molden.no> wrote:

>> By the way, a Python list does not double in size on each allocation. It
>> has a less greedy growth pattern.
>
> Yes - but then python does not use malloc directly either anyway :)

Yes. listobject.c use realloc for resizing, to avoid copying the data if
it can be avoided.

S.M.






More information about the SciPy-User mailing list