Global variables from a class
javier.collado at gmail.com
Fri May 29 15:30:11 CEST 2009
You're right. I agree on that it's important to use proper words.
Thanks for the correction.
2009/5/29 Steven D'Aprano <steve at remove-this-cybersource.com.au>:
> On Fri, 29 May 2009 12:04:53 +0200, Javier Collado wrote:
>> First thing is a class variable (one for every instance) and second one
>> an instance variable (one per instance).
> One of these things don't belong:
> A string variable is a variable holding a string.
> A float variable is a variable holding a float.
> An int variable is a variable holding an int.
> A list variable is a variable holding a list.
> A "class variable" is an attribute of a class object, holding an
> object of arbitrary type, which is shared by all instances
> of the class.
> Please don't use the term "class variable" to mean class attribute.
More information about the Python-list