- Published on
TIL: Python has a `memoryview` builtin
Provides a wrapper over a slice of bytes
or bytearray
. Useful for when you don't want to copy stuff over. Can even mutate the contents!
See docs.
Provides a wrapper over a slice of bytes
or bytearray
. Useful for when you don't want to copy stuff over. Can even mutate the contents!
See docs.