"Ralf W. Grosse-Kunstleve" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]

I have a suggestion I don't remember seeing for flagging which vars to 
autoinit without new syntax: use '_' instead of '.'.  I have never seen 
local vars with a leading '_'.  So, in combination with whatever other 
mechanism (metaclass, __init__ decorator?)

   def __init__(self, _x, y, _z) :

would automatically do self.x = _x, self.z = _z, but not self.y = y.

Terry J. Reedy



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to