micropython-ulab
micropython-ulab copied to clipboard
make frombuffer conform to numpy
@jepler
The creation of ndarrays from buffers should conform to numpy's behaviour, i.e., if the buffer is mutable, frombuffer should produce a view, otherwise, a copy. Background can be found in https://github.com/adafruit/circuitpython/pull/4403#issuecomment-803468553