[ZODB-Dev] Re: false write conflicts

Chris Withers lists at simplistix.co.uk
Wed Mar 3 05:04:15 EST 2004


Marius Gedminas wrote:

> I've seen a recommendation somewhere that it is better to write
> 
>   self.attr[x] = y
>   self.attr = self.attr      # notify Persistence that something changed
> 
> than
> 
>   self.attr[x] = y
>   self._p_changed = True     # notify Persistence that something changed

Why is that?

cheers,

Chris




More information about the ZODB-Dev mailing list