Decoupling ssl.SSLSocket from concrete socket.socket via a Transport Protocol / Interface
Discussions on Python.org
Decoupling ssl.SSLSocket from concrete socket.socket via a Transport Protocol / Interface
Hi everyone, I would like to start an architectural discussion regarding the tight coupling between ssl.SSLSocket and the concrete socket.socket class, and explore whether introducing a formal transport abstraction (or typing.Protocol) could be beneficial for Python’s networking ecosystem. Background & Motivation Python’s networking and I/O ecosystems strongly favor duck typing, structural subtyping (typing.Protocol), and interface-based design. However, ssl.SSLSocket currently relies heavily ...
0 comments
No comments yet.