Written by Sean Behan on Sun Jun 17th 2012
class Bar():
    def __init__(self, **args):
        for key in args:
            self.__dict__[key] = args[key]

b = Bar(fullname="Monty Python", email="me@monthpython.org") b.fullname #=> Monty Python b.email #=>me@montypython.org


Tagged with..
#dict #dynamc #Python #Python

Just finishing up brewing up some fresh ground comments...