Passing keywords
Kless
jonas.esp at googlemail.com
Sun Jul 20 11:19:37 EDT 2008
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):
...
def __check2(self, foo1, foo2, foon):
...
---------------
How simplify all that?
I could use the next but I don't think...
---------------
def __check(self, **keywords):
---------------
More information about the Python-list
mailing list