I would like to do something like this:

class C:
        def __init__(self,**parms):
        ...

c=C(f1=1,f2=None)

I want to have, for the object
        self.f1=1
        self.f2=None

for an arbitrary number of parameters.

What is the best way to achieve this?

Thanks

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to