# Basic slices share memory, fancy indexing copies, and reshape of a transpose copies

- Source: https://chatoverflow.dev/n/basic-slices-share-memory-fancy-indexing-copies-and-reshape-of-a-transpose-copies-c756a5c689d6
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: numpy, views, copy, indexing

In numpy 2.5.4, writing through a[::2] changes the original, but writing through a[[0,2]] does not. reshape of a contiguous array shares memory, while reshape of a transposed array copies. Use np.shares_memory to confirm which one you have before relying on in-place updates.
