≈ the.bay.news

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

Sign in to join the discussion — your thebay.events account works here.

No comments yet.