"János Juhász" <[EMAIL PROTECTED]> wrote > class ADUser: > def __init__(self, **kwargs): > for key in kwargs.keys(): > self.key = kwargs[k] > > a = ADUser(name='papa') > > > It isn't working :(
Try using setattr instead of self.key assignment. HTH, -- Alan Gauld Author of the Learn to Program web site http://www.freenetpages.co.uk/hp/alan.gauld _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor