[Python-Dev] reference leaks, __del__, and annotations

"Martin v. Löwis" martin at v.loewis.de
Tue Apr 4 22:46:02 CEST 2006


James Y Knight wrote:
> All right, then, you could use the top bit of the ob_refcnt field.  
> There's no way to possibly have 2**32 objects on a 32bit system anyhow.

Of this kind, we have several spare bits: there are atleast two bits
in the ob_type field, since the type pointer is atleast 4-aligned
on all platforms we support.

OTOH, using these bits would break existing code.

Regards,
Martin


More information about the Python-Dev mailing list