M.-A. Lemburg a écrit :
(snip)
It is always good practice to provide default values for
instance variables in the class definition, both to enhance
readability and to allow adding documentation regarding
the variables, e.g.

Your opinion. As far as I'm concerned, using class variables this way is more of a WTF than a "good practice".

class Class_a:

   # Foo bar
   a = None

   # Foo baz
   b = None

   ...

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

Reply via email to