Nick Coghlan <ncogh...@gmail.com> added the comment:

Nice work with the patch Stefan - I've added a few review comments (including a 
suggestion on how to deal with the GetContiguous problem).

One idea that review did prompt is that if we aren't going back to the original 
object for fresh buffer requests, perhaps we should expose the underlying 
object as a read-only property of the memoryview objects. That way if the 
original view is unsuitable (e.g. read-only when a writable buffer is needed) 
it should be straightforward to go back to the underlying object to request 
something different.

Another question Stefan raised is whether or not PyMemoryView_FromObject should 
accept a "flags" argument that it passes on to the underlying "getbuffer" call. 
I'm inclined to say yes - ideally I'd like to *only* expose PyMemoryView and 
PyManagedBuffer (rather than GetBuffer/ReleaseBuffer) for the limited API, 
which means accepting the flags argument for the two higher level interfaces.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10181>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to