17 May
2017
17 May
'17
5:11 a.m.
There was another reason too. Many things are "class attributes" e.g.
methods, descriptors. But only specific things are class *variables*. Trust
me, we debated this when the PEP was drafted. ClassVar is better than
ClassAttr.
On Tue, May 16, 2017 at 7:54 PM, Juancarlo Añez
On Tue, May 16, 2017 at 10:10 PM, Guido van Rossum
wrote: It's "class variable" because we (at least I) also routinely use "instance variable".
It is `getattr()`, `setattr()`, and a very long etc. in Python.
I agree with the OP that a sudden talk about "vars" is confusing, more so when Python doesn't have "vars", but "names" (etc.).
Cheers!
-- Juancarlo *Añez*
-- --Guido van Rossum (python.org/~guido)