Message 269545 - Python tracker
Rather tham monkey-patching, in general I recommend just copying some code from the asyncio library and calling that. In this case you'd be copying a tiny bit of code from create_connection(). You'd still be calling an internal API, _make_ssl_transport(), but your code would still be less likely to change when some part of the asyncio library changes than with monkey-patching. (Of course, since you pretty much invented monkey-patching, you may feel differently. :-)