This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients Lukasa, alex, christian.heimes, dstufft, giampaolo.rodola, janssen, martin.panter, ncoghlan, orsenthil, python-dev, vstinner
Date 2016-09-11.04:02:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473566565.54.0.424967630611.issue28022@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-09-11 04:02:45ncoghlansetrecipients: + ncoghlan, janssen, orsenthil, vstinner, giampaolo.rodola, christian.heimes, alex, python-dev, martin.panter, dstufft, Lukasa
2016-09-11 04:02:45ncoghlansetmessageid: <1473566565.54.0.424967630611.issue28022@psf.upfronthosting.co.za>
2016-09-11 04:02:45ncoghlanlinkissue28022 messages
2016-09-11 04:02:45ncoghlancreate