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

Sorry, I mischaracterised Antoine's suggestion in my last comment. It's more in 
the nature of ManagedBuffer exposing two APIs:

1. request_release(): tells ManagedBuffer "if I have the last reference, 
release the buffer now".

2. release(): immediately releases the buffer, or triggers SystemError if there 
are additional references to the buffer. 

memoryview.release() would call the first method before dropping the reference 
to the buffer.

----------

_______________________________________
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