[issue28025] Use IntEnum and IntFlags in ssl module
Ethan Furman
report at bugs.python.org
Thu Sep 8 15:57:14 EDT 2016
Ethan Furman added the comment:
Huh. Well, for property this works:
@property
def options(self):
return Options(_SSLContext.options.__get__(self))
@options.setter
def options(self, value):
_SSLContext.options.__set__(self, Options.OP_ALL)
Sure is ugly, though.
I think there's a PEP about making super() work with descriptors... Ah, PEP447 (not sure it's the same issue, though.)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28025>
_______________________________________
More information about the Python-bugs-list
mailing list