I am not fully aware of how ssl.SSLContext is used, but adding __slots__ would prevent this. You would see an error similar to: AttributeError: 'MyClass' object has no attribute 'my_attribute' _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/CTC2BBSOKIWZ7QLXRKCFH2FP6OMBQXJX/ Code of Conduct: http://python.org/psf/codeofconduct/
- [Python-ideas] disallow assignment to unknown ssl.SSLCont... Thomas Grainger
- [Python-ideas] Re: disallow assignment to unknown ss... Jonathan Fine
- [Python-ideas] Re: disallow assignment to unknown ss... Guido van Rossum
- [Python-ideas] Re: disallow assignment to unknown ss... Bluenix
- [Python-ideas] Re: disallow assignment to unknow... Guido van Rossum
- [Python-ideas] Re: disallow assignment to un... Chris Angelico
- [Python-ideas] Re: disallow assignment t... Guido van Rossum
- [Python-ideas] Re: disallow assignm... Chris Angelico
- [Python-ideas] Re: disallow assignment to un... Christian Heimes
- [Python-ideas] Re: disallow assignment t... Guido van Rossum
- [Python-ideas] Re: disallow assignm... Thomas Grainger
- [Python-ideas] Re: disallow ass... Jonathan Fine
- [Python-ideas] Re: disallow assignm... Steven D'Aprano
- [Python-ideas] Re: disallow assignment to un... Steven D'Aprano
