[Python-3000] PEP Draft: Enhancing the buffer protcol

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Mar 1 00:57:11 CET 2007


Daniel Stutzbach wrote:
> On 2/27/07, Travis E. Oliphant <oliphant.travis at ieee.org> wrote:

>>But I've heard that the reference counts on
>>Python objects can be larger than 1 in some cases (even though there
>>isn't really anything "viewing" the memory).
> 
> Is that true?

The interpreter machinery sometimes keeps temporary
references internally, e.g. when passing args to a
function, so sometimes the refcount is a bit higher
than you would expect from thinking about it at the
Python level.

--
Greg




More information about the Python-3000 mailing list