Message139921
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. |
|
| Date |
User |
Action |
Args |
| 2011-07-06 04:21:37 | ncoghlan | set | recipients:
+ ncoghlan, teoliphant, mark.dickinson, rupole, kermode, pitrou, vstinner, pv, skrah, jcon, petri.lehtinen |
| 2011-07-06 04:21:37 | ncoghlan | set | messageid: <[email protected]> |
| 2011-07-06 04:21:36 | ncoghlan | link | issue10181 messages |
| 2011-07-06 04:21:36 | ncoghlan | create | |
|