non-copy slices

Daniel Stutzbach daniel at
Thu Nov 19 14:16:45 CET 2009

On Wed, Nov 18, 2009 at 9:00 PM, Rami Chowdhury <rami.chowdhury at>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.

It still has to copy the reference, though.  That takes O(n) time if you're
taking a big slice.

Daniel Stutzbach, Ph.D.
President, Stutzbach Enterprises, LLC <>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list