def __init__(self, **fields):
self.__dict__ = fields
p = Bunch(x=2.3, y=4.5)
print p
print p.__dict__
I dont' understand the usage of the double * here, could anyone explain it for me? thanks.
-- http://mail.python.org/mailman/listinfo/python-list
-- http://mail.python.org/mailman/listinfo/python-list