non-copy slices

Rami Chowdhury rami.chowdhury at gmail.com
Thu Nov 19 10:21:27 EST 2009


On Thu, 19 Nov 2009 02:39:42 -0800, <tbourden at doc.ic.ac.uk> wrote:

> Second and more
> importantly it's the performance penalty from allocating a large number  
> of
> lists produced from the slices and the copy of the references.

Ah, I see what you were getting at -- thanks for clarifying.

>
> On Thu, Nov 19, 2009 at 3:00 AM, Rami Chowdhury  
> <rami.chowdhury at gmail.com>wrote:
>
>>
>> I'm not sure you're understanding the point others have been making. A
>> list item is merely another reference to an existing object -- it
>> doesn't copy the object in any way.
>>
>>



-- 
Rami Chowdhury
"Never attribute to malice that which can be attributed to stupidity" --  
Hanlon's Razor
408-597-7068 (US) / 07875-841-046 (UK) / 0189-245544 (BD)



More information about the Python-list mailing list