A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-July/054580.html below:

[Python-Dev] reducing self.x=x; self.y=y; self.z=z boilerplate code

[Python-Dev] reducing self.x=x; self.y=y; self.z=z boilerplate codeAahz aahz at pythoncraft.com
Sat Jul 2 06:37:11 CEST 2005
On Fri, Jul 01, 2005, Ralf W. Grosse-Kunstleve wrote:
> 
> I often find myself writing:
> 
>   class grouping:
> 
>       def __init__(self, x, y, z):
>           self.x = x
>           self.y = y
>           self.z = z
> 
> 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

This is off-topic for python-dev.  Please take it to comp.lang.python.
(It's not immediately obvious that this is off-topic, I know, but please
take my word for it.)
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

f u cn rd ths, u cn gt a gd jb n nx prgrmmng.
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4