to a file. Will the pointers be converted to a copy of the z class
objects or will one copy of the z class objects be saved and than the
x.elements and y.elements will still be a list of pointers?
Thanks for the help,
Yair
--
Yair Benita
Utrecht University
The Netherlands
. Is this true?
Thanks again for the help,
Yair
On Jun 20, 2005, at 4:00 , Tim Peters wrote:
[Yair Benita]
... suppose I have two different classes and both contain a list
of a objects
from a third class:
class x has the attribute x.elements = [objects of class z]
class y has the attribute
(min=1, max=4).
As I have no idea about the code that make the BTree tick, I was wondering:
does anybody advise against it? Should I be extra careful about some things?
Thanks for the help,
Yair
--
Yair Benita
Utrecht University
The Netherlands
I recently started to use ZODB and python as my chosen database
solution.
I am having a few problems with retaining changes in BTrees. I have
read the documentation and am aware of the _p_changed attribute. Still,
here is what I observe:
# consider this simplified
object is rewritten to file?
Yair
On Jun 1, 2005, at 11:13, Lennart Regebro wrote:
On 6/1/05, Yair Benita [EMAIL PROTECTED] wrote:
# I would really really like this to work
T[1].add(6)
T._p_changed = True
get_transaction().commit()
# but it doesn't.
Well, the thing you changed is the set
Of course, that was it.
I guess it also makes more sense.
Works perfectly now, and may I say, much faster.
Thanks,
Yair
On Jun 1, 2005, at 11:50, Sidnei da Silva wrote:
On Wed, Jun 01, 2005 at 10:36:58AM +0200, Yair Benita wrote:
| Can anyone suggest an efficient way that will not require