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

If someone is calling release() on all of their views (including slices) than 
they won't have any problems. The only way they can get into trouble is if they 
have a slice or copy that they *aren't* explicitly releasing, and in that case 
they *already* have a problem and we're just picking it up sooner (although, in 
the case of CPython, refcounting will likely take care of it, just as it does 
for similar problems with files).

This is why I suggested that we should start exposing the source object at the 
Python level as an attribute of memoryview objects. Then people can decide for 
themselves if they want a "view-of-a-view" by slicing/copying the memoryview 
directly or a new, independent view by going back to the original object.

----------

_______________________________________
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