Currently it is. Glyph says that's bad, because there are cases where you have lots of tiny processes stuffed onto a box and openssl is kinda memory hungry, so it's better not to load the ssl module until you have to.
I'm not super-opposed to making people import trio.ssl, but if we have a high-level trio.open_ssl_tcp_stream(...) function then it may take some awkward work to avoid importing it early. And I'm not a big fan of the idea that calling that function would implicitly cause trio.ssl to materialize in the user-visible namespace.
Currently it is. Glyph says that's bad, because there are cases where you have lots of tiny processes stuffed onto a box and openssl is kinda memory hungry, so it's better not to load the
sslmodule until you have to.I'm not super-opposed to making people
import trio.ssl, but if we have a high-leveltrio.open_ssl_tcp_stream(...)function then it may take some awkward work to avoid importing it early. And I'm not a big fan of the idea that calling that function would implicitly causetrio.sslto materialize in the user-visible namespace.