-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Florent Guillaume wrote:
> Hi,
> 
> Could anyone confirm that this shows a BTree bug:
> 
> from BTrees.OOBTree import OOBTree
> class B(OOBTree):
>   def __init__(self):
>     OOBTree.__init__(self)
>     print self._p_changed
>     self.foo = 4
>     print self.foo
>     print self._p_changed
>     self._p_changed = True
>     print self._p_changed
> B()
> 
> This prints:
> False
> 4
> False
> False
> 
> Where I would expect True for the last two at least.

The 'setattr' majyk only works for objects which are already in a jar.


Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEpBkY+gerLs4ltQ4RAo8IAKCz2yB9eYMYfVCFMhKMBjLAoW3DlwCghjlp
6uPvj8QYrdfew+f4w29aS1E=
=0oQz
-----END PGP SIGNATURE-----

_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev

Reply via email to