Mark Dickinson <dicki...@gmail.com> added the comment:

[Nick]
> For point 2, it must be the same pointer. When the PEP says "the same", > I 
> agree it could be taken as ambiguous, but the later reference to the 
> exporter managing a linked-list of exported views makes it clear that 
> identity is what matters.

Okay, thanks.  Next point of confusion:  does that mean that in the example I 
gave, the object 'n' (the memoryview slice) needs to know about *two* distinct 
Py_buffer structs---one to pass back to releasebuffer and one to store its own 
information?  It seems to me that these can't be the same, since (a) the 
Py_buffer for the slice will have different shape and stride from that returned 
by getbuffer, (b) what's passed back to releasebuffer should be identical to 
what came from getbuffer, so we can't just modify the shape and stride 
information in place.

----------

_______________________________________
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