[Python-3000] PEP Draft: Enhancing the buffer protcol
Nick Coghlan
ncoghlan at gmail.com
Wed Feb 28 05:09:34 CET 2007
Greg Ewing wrote:
> Nick Coghlan wrote:
>> I'd also like to know what should happen if
>> the object's Python refcount drops to zero, but the view count is still
>> greater than 0.
>
> That shouldn't happen, because the code using the view
> ought to be responsible for holding a reference to the
> containing object as long as it's using the view.
That's what I thought, but it should probably be mentioned explicitly in
the PEP (and the eventual docs) that the memory reference needs to be in
addition to a normal object reference, rather than instead of.
Regards,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
More information about the Python-3000
mailing list