[issue28025] Use IntEnum and IntFlags in ssl module

Christian Heimes report at bugs.python.org
Thu Sep 8 14:13:51 EDT 2016


Christian Heimes added the comment:

Thanks Ethan! I have updated the patch with documentation and your fix.

Do you have an easy recipe to wrap properties like SSLContext.options to return an enum? It's not easy because super() does not support attribute proxy assignment. super().verify_mode = value raises an AttributeError.

----------
Added file: http://bugs.python.org/file44473/convert-ssl-constants-to-enums.patch

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


More information about the Python-bugs-list mailing list