[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question on difference between LambdaType and FunctionType

> class Foo:
>    def setup(self): ...
>    __init__ = lambda self: self.setup()

Sorry, didn't address this. This is fine too, since I'm assuming that
only methods named __init__ are allowed to mutate the object.
Because 'setup' is not '__init__' it's disqualified.

Iwo Herka