No because existence of this attribute is dynamic

On Fri, Jun 25, 2021, 3:44 PM Guido van Rossum <gu...@python.org> wrote:

> Would a static type checker have found this?
>
> On Fri, Jun 25, 2021 at 02:07 Thomas Grainger <tagr...@gmail.com> wrote:
>
>> I was debugging some code that was using TLSv1.2 when I expected it to
>> only support TLSv1.3, I tracked it down to a call to:
>>
>> context.miunimum_version = ssl.TLSVersion.TLSv1_3
>>
>> it should have been:
>>
>> context.minimum_version = ssl.TLSVersion.TLSv1_3
>>
>> I'd like invalid attribute assignment to be prevented at runtime
>> _______________________________________________
>> Python-ideas mailing list -- python-ideas@python.org
>> To unsubscribe send an email to python-ideas-le...@python.org
>> https://mail.python.org/mailman3/lists/python-ideas.python.org/
>> Message archived at
>> https://mail.python.org/archives/list/python-ideas@python.org/message/RPD5OICSY3KLVXKIYWFTABNIA7F7YWG3/
>> Code of Conduct: http://python.org/psf/codeofconduct/
>>
> --
> --Guido (mobile)
>
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/GPCJXBGQYBIT5QYRWUSI3YKU265W4XJY/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to