Author ncoghlan
Recipients jcon, kermode, mark.dickinson, ncoghlan, petri.lehtinen, pitrou, pv, rupole, skrah, teoliphant, vstinner
Date 2011-07-06.04:21:36
SpamBayes Score 6.62519e-06
Marked as misclassified No
Message-id <1309926097.0.0.510751966682.issue10181@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-07-06 04:21:37ncoghlansetrecipients: + ncoghlan, teoliphant, mark.dickinson, rupole, kermode, pitrou, vstinner, pv, skrah, jcon, petri.lehtinen
2011-07-06 04:21:37ncoghlansetmessageid: <1309926097.0.0.510751966682.issue10181@psf.upfronthosting.co.za>
2011-07-06 04:21:36ncoghlanlinkissue10181 messages
2011-07-06 04:21:36ncoghlancreate