You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PEP 3121, 384 Refactoring applied to ssl module #59875
Activity
RobinSchreiber commentedon Aug 15, 2012
Changes proposed in PEP-3121 and PEP-384 have now been applied to the ssl module!
tiran commentedon Sep 7, 2017
Is anybody interested to port Robin's patch to 3.7?
asvetlov commentedon Sep 8, 2017
The patch consists from two changes: replacing static vars with module state and using slot based way for constructing classes.
The first change is obvious but I not sure if we need second transformation.
pitrou commentedon Sep 8, 2017
PyType_FromSpec provides a rather neat way to initialize C extension types. However, there are a couple of pitfalls to look out for:
https://bugs.python.org/issue16690
https://bugs.python.org/issue26979
vstinner commentedon Jul 12, 2018
Honestly, the ssl module is complex, and the conversion to PEP-3121 and PEP-384 are not straighforward, so I removed the "easy (C)" keyword.
vstinner commentedon Nov 19, 2020
Marked as a duplicate of bpo-42333.
See also bpo-41111 "Convert a few stdlib extensions to the limited C API (PEP-384)".