Python · Class
memoryview
memoryview exposes an object's buffer data without copying it. It supports indexing, slicing, and, for writable buffers, compatible assignments.
Last updated
Syntax
memoryview(object)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
bytesbytearraymemoryview.hex()memoryview.tolist()memoryview.tobytes()memoryview.release()Buffer Protocol