def resizer(length): if length & 7: raise SizeofError("size must be a multiple of 8", length) return length >> 3
def _sizeof(self, context): raise SizeofError("can't calculate size")
def _sizeof(self, context): # return self.lengthfield._sizeof(None) + sum(self.subcon._sizeof(element) for element in context) raise SizeofError("cannot calculate size")