
July 2, 2005
4:37 a.m.
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@pythoncraft.com) <*> http://www.pythoncraft.com/ f u cn rd ths, u cn gt a gd jb n nx prgrmmng.