12 Aug
2005
12 Aug
'05
2:44 p.m.
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.