[ZODB-Dev] Synchronizing Mirror Sites

Shane Hathaway shane at zope.com
Tue Jul 22 14:23:29 EDT 2003


Christian Reis wrote:
> On Tue, Jul 22, 2003 at 11:04:37AM -0400, Shane Hathaway wrote:
> 
>>    def setBar(self, b):
>>        self.bar = b
>>        log.add(self, 'setBar', b)
> 
> 
> Quick question. Why not store the bound method, using:
> 
>     log.add(self.setBar, b)
> 
> -- will we have problems storing bound methods?

AFAIK, Pickle doesn't like to store functions and bound methods.  I 
could be happily wrong, though--maybe that rule is related to 
acquisition wrappers.

Shane




More information about the ZODB-Dev mailing list