[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Python ceval.c,2.217,2.218

Thomas Wouters thomas@xs4all.net
Thu, 11 Jan 2001 22:41:57 +0100

On Thu, Jan 11, 2001 at 12:25:30PM -0800, Mark Hammond wrote:

> I thought rules were pretty clear with reference counting - dont assume
> _anything_ about the object unless you hold a reference (or are damn sure
> someone else does!)

Moshe isn't breaking that rule. He isn't assuming anything about the object,
just about the value of the pointer to that object. I agree, though, that
it's bad practice to rely on it having the old value, after DECREFing it.

Thomas Wouters <thomas@xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!