bhaaluu wrote:
> Best practice?

Use class attributes when you actually want a shared attribute, for 
example for constants with class scope, or as defaults when instance 
attributes may not be assigned. Class attributes can be redefined by 
subclasses which makes them useful as a way to configure a class.

Don't use them strictly as documentation. Write a docstring instead.

My $.02
Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to