Proposal: reducing self.x=x; self.y=y; self.z=z boilerplate code
Walter Brunswick
walterbrunswick at sympatico.ca
Sat Jul 2 13:43:33 EDT 2005
Why not just update the local dictionary?
class Grouping:
def __init__(self,x,y,z):
self.__dict__.update(locals())
More information about the Python-list
mailing list