Optimizing Inner Loop Copy

Paul McGuire ptmcg at austin.rr._bogus_.com
Fri Aug 18 10:14:21 EDT 2006


"Mark E. Fenner" <mfenner at gmail.com> wrote in message
news:2OjFg.2$Te.0 at trnddc07...
> > Save inheritance for the true "is-a" relationships among your problem
> > domain
> > classes.  For instance, define a base Rule class, and then you can
extend
> > it with things like DeterministicRule, ProbabilisticRule, ArbitraryRule,
> > etc. But don't confuse "is-implemented-using-a" with "is-a".
> >
>
> Well, I know the difference and choose to break the rule intentionally
> *chuckle*.  After the initial prototype, speed trumped OO.
>
> > -- Paul
>
> Thanks for your comments, Paul.
>
> Regards,
> Mark

hmm... maybe I should consider making ParseResults inherit from list...

-- Paul





More information about the Python-list mailing list