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

Sturla Molden sturla@molden...
Mon Jan 26 10:40:50 CST 2009


> On Tue, Jan 27, 2009 at 1:16 AM, Sturla Molden <sturla@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