On Wed, 25 Jul 2007 00:22:18 +0000, Alex Popescu wrote: > "Steven D'Aprano" <[EMAIL PROTECTED]> wrote in > news:[EMAIL PROTECTED]: > >> On Tue, 24 Jul 2007 21:35:58 +0000, Alex Popescu wrote: >> >>> Neil Cerutti <[EMAIL PROTECTED]> wrote in >>> news:[EMAIL PROTECTED]: >>> >>>> On 2007-07-24, Alex Popescu <[EMAIL PROTECTED]> wrote: >>>>> Bruno Desthuilliers >>>>> <[EMAIL PROTECTED]> wrote in >>>>> news:[EMAIL PROTECTED]: >>>>> >>>> >>>> [snip...] >>>> >> >> Use self.class_list when you want to use inheritance. >> > > As a matter of style, how do you figure out that class_list is a class > attribute and not an instance attribute? (I don't remember seeing anything > in the PEP describing the coding style).
The whole point of inheritance is that you don't care where the attribute is (the instance, the class, a parent class...) just that it exists. -- Steven. -- http://mail.python.org/mailman/listinfo/python-list