Kim Branson wrote:
> Hi,
>
> what i've ended up doing is the following
>
> define a EmpiricalScore class that has all the methods for computing
> results
>
> define a single method in the evaluation class that is called
> Score. This method simply walks though a list and executes the
> m
Hi,
what i've ended up doing is the following
define a EmpiricalScore class that has all the methods for computing
results
define a single method in the evaluation class that is called
Score. This method simply walks though a list and executes the
methods in that list. There may be one
Kim Branson wrote:
> Hi i'm interested in implementing a factoryclass in python
>
> What i'd like to do is have my factoryClass produce an instance of a
> class with some methods defined in arguments to the factory class.
>
> The classes that are produced have many common methods, but a single
"Kim Branson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi i'm interested in implementing a factoryclass in python
>
> What i'd like to do is have my factoryClass produce an instance of a
> class with some methods defined in arguments to the factory class.
>
> The classes that
Technically, you don't need metaclasses probably:
class A(object):
def methA(self, abc):
pass
def methB(self, def, ghi):
pass
def defaultMethod(self):
raise UnknownMethodError()
def __init__(self, methodName):
self._calc = getattr(self, "meth%s" % me