Global variables from a class
Steven D'Aprano
steve at REMOVE-THIS-cybersource.com.au
Fri May 29 08:42:53 EDT 2009
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
More information about the Python-list
mailing list