[Tutor] python list, right! but concretely?

Alan Gauld alan.gauld at btinternet.com
Mon May 3 01:58:14 CEST 2010


"spir ☣" <denis.spir at gmail.com> wrote

> ...When writing "size = size + new_allocated" instead of
> "size = new_allocated", It get a growth pattern of:
>    0 3 6 9 16 24 33 43 54 66 80 96 114
> Which is not exactly what is stated in code, but rather similar...

You mean like this line in the source?:

new_allocated += newsize;

Alan G. 




More information about the Tutor mailing list