On May 09, 2012, at 05:47 PM, Larry Hastings wrote: >I like Alex Martelli's approach, which I recall was exactly this: > > class namespace: > def __init__(**kwargs): > self.__dict__ = kwargs > > >That means all the initializers you pass in to the constructor get turned >into members.
Well, "__init__(self, **kws)", but yeah. :) -Barry _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com