On Thu, 2007-09-13 at 18:38 -0500, [EMAIL PROTECTED] wrote:
> Hrvoje> More precisely, Python will call the deallocator appropriate for
>     Hrvoje> the object type.  If that deallocator does nothing, the object
>     Hrvoje> continues to live.  Such objects could also start out with a
>     Hrvoje> refcount of sys.maxint or so to ensure that calls to the no-op
>     Hrvoje> deallocator are unlikely.
> 
> Maybe sys.maxint/2?  You'd hate for the first incref to invoke the
> deallocator even if it was a no-op.  

ob_refcnt is signed.  :-)


_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to