Newbie: question regarding references and class relationships

Rui Maciel rui.maciel at gmail.com
Mon Jun 10 12:09:39 EDT 2013


Peter Otten wrote:

> I don't understand the question. My original point was that you should
> omit class attributes that don't fulfill a technical purpose.
> 

You've said the following:

<quote>
> class Point:

Don't add 

>         position = []

to your code. That's not a declaration, but a class attribute and in the 
long run it will cause nothing but trouble.
</quote>


We've established that you don't like attribute declarations, at least those 
you describe as not fulfill a technical purpose.  What I don't understand is 
why you claim that that would "cause nothing but trouble".


Rui Maciel



More information about the Python-list mailing list