> I have converted another example of strategy which I prefer to the 2
> described earlier, here it is:
>
> class FindMinima:
> def algorithm(self):raise NotImplementedError
When most of your code does nothing in a pompous way that is a sure sign
that you are heading in the wrong directio
I have converted another example of strategy which I prefer to the 2
described earlier, here it is:
class FindMinima:
def algorithm(self):raise NotImplementedError
class LeastSquares (FindMinima):
def algorithm(self,line):
return (1.1,2.2)
class NewtonsMethod (F
> What the following discussion says is that the C++ -> Python
> transliteration is totally trivial and obvious and berates the original
> requestor for making me waste 10 minutes to provide it.
Thanks for the giggle :-)
--
http://mail.python.org/mailman/listinfo/python-list
Jason <[EMAIL PROTECTED]> wrote:
> Hi
>
> I really need an example of a builder pattern in python, the closest I
> could find to something resembling builder was on this thread...
>
http://groups.google.co.uk/group/it.comp.lang.python/browse_thread/threa
d/44f79c1def2583ca/200adefeefa5f3fa?lnk=st