Also not happy that with a Python ssl.SSLSocket, the following code causes issues:
socket.context = ...
socket.context.x
while the following code works:
context = ...
context.x
socket.context = context
Also not happy that with a Python ssl.SSLSocket, the following code causes issues:
socket.context = ...
socket.context.x
while the following code works:
context = ...
context.x
socket.context = context
I think manipulating the context causes the weird behavior because of https://github.com/python/cpython/blob/e4c596dab8038f332227aa68a72dbc0ee3c68205/Lib/ssl.py#L1091