Re: [Python-Dev] weakattr

2006-07-03 Thread tomer filiba
> I like the added functionality offered with weakattrs as defined. I'm > not terribly in love with the syntax of their creation, and I'm curious > as to how it plays with __slots__ weakattrs are data descriptors, just like properties etc. they are part of the class, not the instance, so there sho

Re: [Python-Dev] weakattr

2006-07-01 Thread Josiah Carlson
"tomer filiba" <[EMAIL PROTECTED]> wrote: > weakattr (weak attributes) are attributes that are weakly referenced > by their containing object. they are very useful for cyclic references -- > an object that holds a reference to itself. I like the added functionality offered with weakattrs as defin

[Python-Dev] weakattr

2006-07-01 Thread tomer filiba
weakattr (weak attributes) are attributes that are weakly referencedby their containing object. they are very useful for cyclic references --an object that holds a reference to itself. when a cyclic reference is found by the GC, the memory may be freed, but __del__ is not called, because it's impo