Christian Heimes <li...@cheimes.de> 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 <rep...@bugs.python.org>
<https://bugs.python.org/issue43902>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to