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

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Apr 5 02:11:14 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.

That would slow down every Py_INCREF and Py_DECREF,
which would need to be careful to exclude the
top bit from their operations.
--
Greg


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /