[issue28022] SSL releated deprecation for 3.6

Nick Coghlan report at bugs.python.org
Sun Sep 11 00:02:45 EDT 2016


Nick Coghlan added the comment:

That sounds like the "re" module would be a better exemplar for an SSL module convenience API design than "random" then - that has a similar model of needing an LRU cache for the compiled patterns for performance reasons, while still making working with the compiled form in your own code optional (which means you don't need to find a place to store it to gain the performance benefits of pattern reuse).

It would need to be a hidden cache, though - since SSLContext objects are mutable, it wouldn't be a good idea to expose any implicitly shared ones.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28022>
_______________________________________


More information about the Python-bugs-list mailing list