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

Paul Rubin http
Sun Jul 10 19:07:40 EDT 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