Global variables from a class

Javier Collado javier.collado at gmail.com
Fri May 29 09:30:11 EDT 2009


You're right. I agree on that it's important to use proper words.
Thanks for the correction.

Best regards,
    Javier

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:
>
>> Hello,
>>
>> 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.
>
>
>
> --
> Steven
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list