[Scott David Daniels] > You can simplify this: > class Hash(object): > def __init__(self, **kwargs): > for key,value in kwargs.items(): > setattr(self, key, value)
Might it be: def __init__(self, **kwargs): self.__dict__.update(kwargs) -- François Pinard http://pinard.progiciels-bpi.ca -- http://mail.python.org/mailman/listinfo/python-list