News for hackers. Stuff that matters.
Re:The PEPs of Python 3.9 by masklinn on Thursday May 28, 2020 @03:44PM (#23341656)
> Slicing in Python always create a new object.

It always creates a new object but it doesn't necessarily copy the contents (even shallowly).

For instance slicing a `memoryview` creates a subview which shares storage with its parent.

There are no comments on this comment yet.