[Chandler-dev] Getting rid of all __init__ methods (for Item subclasses)

Bryan Stearns stearns at osafoundation.org
Thu Mar 22 15:59:44 PST 2007


Andi Vajda wrote:
>
> On Thu, 22 Mar 2007, Bryan Stearns wrote:
>
>> OK, I retract my suggestion about reindexingDeferred(). Any 
>> objections to my suggestion about observersDeferred()?
>
> That would mirror what is already happening and would continue to 
> happen if Phillip just invoked the very top Item __init__() with these 
> initial values as keywords.
>
No, that was my point in making the original suggestion: if keyword 
initialization is used to initialize biref attributes, and the other end 
of a biref has an observer, that observer will be called with the 
item-being-initialized in an indeterminate state. That's bad, so I 
suggested that we use observersDeferred() to avoid this problem.

...Bryan



More information about the chandler-dev mailing list