memoryview¶

Memoryview is a mechanism that allows access to object data without preliminary copying. Memoryview doesn't work with all objects, but only with those that support the buffer protocol (we'll learn about it much later, in the last chapter dedicated to Python and C code interaction); these include bytes, bytearray, memoryview (yes, you can create a memoryview of a memoryview), NumPy arrays, and images in the Pillow library.

Memoryview has several main applications: processing large arrays of information; fast data processing; low-level data manipulation.

You can read more about memoryview here.