[Zope-dev] To the brave folks trying Zope HEAD...
Jeremy Hylton
jeremy at zope.com
Wed Dec 10 15:38:04 EST 2003
On Wed, 2003-12-10 at 15:36, Sidnei da Silva wrote:
> | 'jar' gives:
> | object : <attribute '_p_jar' of 'persistent.Persistent' objects>
> | type : getset_descriptor
> | refcount: 2
> | address : 0x40621e6c
> |
> | Thus, asking for the class's _p_jar gives the descriptor back. In ZODB4
> | I hacked around this by requiring that the value of _p_jar be None or a
> | string. Would there be any objection to having the same requirement in
> | ZODB3?
>
> I have no clue about the implications of this, but it seems like a
> reasonable constraint to me.
Actually, that's just a brain cramp on my part. We can check that an
oid is a string or None, but not a jar. I'll have to think about an
efficient check.
Jeremy
More information about the Zope-Dev
mailing list