[Zope-dev] Re: BTrees.Length conflict resolution

Martijn Pieters mj at zopatista.com
Fri Aug 12 10:44:01 EDT 2005


Tim Peters wrote:
> You haven't seen this fail, you're _deducing_ that it "must" fail, right?

Deducing indeed...

> Don't overlook this other Length method:
> 
>     def __getstate__(self):
>         return self.value
> 
> That is, when a Length instance is asked for its state, it returns an
> integer.  Similarly setting its state expects an integer:
> 
>     def __setstate__(self, v):
>         self.value = v

Dang. I knew I was missing something here. Thanks for putting me 
straight, Tim.

Martijn, who has managed to extract himself from conflict resolution 
code today.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20050812/08f740c4/signature.bin


More information about the Zope-Dev mailing list