Christian Heimes <[email protected]> added the comment:
I don't want to import ctypes from the ssl module code.
PyCapsule could be a solution for the problem. Users would have to call
PyCapsule_Import("_ssl.capsule") and PyCapsule_GetPointer() to access a struct
with additional methods. It's a bit more work to implement and slightly harder
to use, but safer than exposing raw memory addresses.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue43902>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com