[Python-ideas] PEP 526: why ClassVar instead of ClassAttr?

Brett Cannon brett at python.org
Thu May 18 11:25:28 EDT 2017


On Wed, May 17, 2017, 09:33 Ivan Levkivskyi, <levkivskyi at gmail.com> wrote:

> On 17 May 2017 at 11:03, Steven D'Aprano <steve at pearwood.info> wrote:
>
>> On Tue, May 16, 2017 at 10:11:31PM -0700, Guido van Rossum wrote:
>> > There was another reason too. Many things are "class attributes" e.g.
>> > methods, descriptors. But only specific things are class *variables*.
>>
>> Ah, that's a good reason. I can live with that.
>>
>> Thanks for the explanation.
>>
>>
> This was discussed during development of PEP 526:
> https://github.com/python/typing/issues/258#issuecomment-242263868
> Maybe we should add a corresponding subsection to "Rejected ideas"?
>

If it isn't too much trouble to write them I say it's a reasonable idea.

-brett


> --
> Ivan
>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170518/6ee2d511/attachment.html>


More information about the Python-ideas mailing list