Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Thanks for your comments. I'll provide an updated patch later today and let you take a look.
> * Memoryview object should report it's length as self->view.shape[0] > unless self->view.shape is NULL (indicating in this case a 0-d array or > scalar). In this case, it should raise an error. Are 0-d arrays (scalars) really useful? Could we make things simpler by simply removing support for them? > * The buffer protocol is clear about who owns the memory for shape and > strides (and suboffsets). The exporter does and it is responsible for > not changing them until releasebuffer is called. But how do we do when slicing a memoryview? The new (sliced) memoryview object clearly must alter the shape after the buffer has been filled in by the exporter. _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4580> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com