Would you please explain the difference between class variable and class attribute?
According to this web-page, class attributes are variables owned by the class itself.
For example:
class MP3FileInfo(FileInfo):
"store ID3v1.0 MP3 tags"
tagDataMap = {"title" : ( 3, 33, stripnulls),
"artist" : ( 33, 63, stripnulls),
"album" : ( 63, 93, stripnulls),
"year" : ( 93, 97, stripnulls),
"comment" : ( 97, 126, stripnulls),
"genre" : (127, 128, ord)}
The web page says tagDataMap is a class attribute. But according to Tutorialspoint.com, "class variable is a variable that is shared by all instances of a class. Class variables are defined within a class but outside any of the class's methods."
So what Tutorialspoint.com calls class variable and what diveintopython.net calls class attribute are the same thing? I believe there are differences between these two terms and I would like to learn.
Thank you!