[Python-Dev] reference leaks, del, and annotations (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Tue Apr 4 22:46:02 CEST 2006
- Previous message: [Python-Dev] reference leaks, __del__, and annotations
- Next message: [Python-Dev] reference leaks, __del__, and annotations
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
James Y Knight wrote:
All right, then, you could use the top bit of the obrefcnt 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
- Previous message: [Python-Dev] reference leaks, __del__, and annotations
- Next message: [Python-Dev] reference leaks, __del__, and annotations
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]