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 <[email protected]> wrote: > > On Tue, May 16, 2017 at 10:10 PM, Guido van Rossum <[email protected]> > 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)
_______________________________________________ Python-ideas mailing list [email protected] https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/
