Re: Passing keywords

2008-07-20 Thread Fredrik Lundh
Kless wrote: I could use the next but I don't think... --- def __check(self, **keywords): --- don't think what? if you keep using the same variables in all submethods you call from a method inside the class, why not make them attributes? otherwise, using the **

Passing keywords

2008-07-20 Thread Kless
I've a constructor with several values that must be used by any functions: --- class foo: def __init__(self, foo1, foo2, foon): self.__check(foo1=foo1, foo2=foo2, foon=foon) self.__check2(foo1=foo1, foo2=foo2, foon=foon) def __check(self, foo1, foo2, foon): ...