[Tutor] Tutor Digest, Vol 118, Issue 99

Mark Lawrence breamoreboy at yahoo.co.uk
Sat Dec 21 10:12:45 CET 2013


On 21/12/2013 07:53, Keith Winston wrote:
>
> On Sat, Dec 21, 2013 at 2:14 AM, <tutor-request at python.org
> <mailto:tutor-request at python.org>> wrote:
>
>     I don't like the terms "class variable" and "instance variable". In the
>     Python community, these are usually called class and instance attributes
>     rather than variables or members.
>
>
> Hey Steven, that was a very generous explanation. Thanks! Very clear. I
> was floundering over the simple name/concept of attibute, and it had
> undermined my reading of other material. Your examples were extremely
> helpful. I think I understood everything you said (after a second
> reading). I keep hearing about how Python creates namespaces which I
> think are dictionaries, I'm going to have to look into that further to
> understand how some of this fits together. I think that's where Python
> is going when you're talking about looking up attributes (and it would
> include methods too, unless they're still functions... maybe they're
> methods for instances and functions for classes? Ok, I don't get that
> part yet).
>
> Anyway, thanks again
> --
> Keith
>

I'm unsure as to what the subject line has in common with class and 
instance variables, would you care to explain it please.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence



More information about the Tutor mailing list