__autoinit__ (Was: Proposal: reducing self.x=x; self.y=y; self.z=z boilerplate code)

Paul Rubin http
Mon Jul 11 01:07:40 CEST 2005


Dan Sommers <me at privacy.net> writes:
>     def __init__(self, self.x, y, self.z):
>         # self.x, self.z from first and third explicit parameters
>         do_something_with_y()

Hey, I like that.



More information about the Python-list mailing list