[ZODB-Dev] [Enhancement Proposal] Garanteed lifetime for volatile
variables
Jim Fulton
jim at zope.com
Mon Oct 9 13:22:42 EDT 2006
Dieter Maurer wrote:
> Jim Fulton wrote at 2006-10-6 16:55 -0400:
>> ...
>>> As explained in the proposal:
>>>
>>> We have 3 use cases for volatile attributes:
>> I didn't ask why you use volatile attributes.
>>
>> I asked why _p_sticky needs to be stored on each instance,
>> since it is set at the class level.
>
> It is set at class level only for one of the 3 use cases -- as explained
> in the original proposal *AND* in the repetition of the 3 use cases....
Hm, I don't why the use cases imply setting it only at the class
level, but OK. I'll just take that as a given. So, since _p_sticky
is set at the class level, why store it on the instances?
Jim
--
Jim Fulton mailto:jim at zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
More information about the ZODB-Dev
mailing list