[Python-Dev] reducing self.x=x; self.y=y; self.z=z boilerplate code
Anthony Baxter
anthony at interlink.com.au
Sat Jul 2 07:15:41 CEST 2005
On Saturday 02 July 2005 08:59, Ralf W. Grosse-Kunstleve wrote:
> I hate it, and every time I show this to a Python newcomer I get that
> skeptic look. How about this for a change?
>
> class grouping:
>
> def __init__(self, .x, .y, .z):
> pass
-1. Syntax should not look like grit on my monitor.
Anthony
--
Anthony Baxter <anthony at interlink.com.au>
It's never too late to have a happy childhood.
More information about the Python-Dev
mailing list