[RFC] allow fulltext to be more dynamic
Martin Pool
mbp at canonical.com
Sun Nov 26 20:40:45 GMT 2006
On 26 Nov 2006, John Arbash Meinel <john at arbash-meinel.com> wrote:
> Well, my point was I wanted something like:
>
> class KnitVersionedFile(...
>
> _max_delta_chain = 200
>
> ...
>
> def set_max_delta_chain(self, max_delta):
> self._max_delta_chain = max_delta
>
> ...
> while count < self._max_delta_chain:
> do stuff
>
>
> Because it could be useful to override _max_delta_chain on a per-object
> basis, or possibly per-class.
Yes, that's what I was thinking of too and I think it's a reasonable
pattern too.
--
Martin
More information about the bazaar
mailing list