Christian Heimes added the comment: I tried:
class SSLContext(_SSLContext): ... @property def options(self): return Options(super().options) @options.setter def options(self, value) super().options = value # ^^^^^ # This fails with an AttributeError # it would be cool to have something like this: options = MagicEnumWrapper(Options) About the shorter names, I'm worried that it might confuse people. The long names have been module constants for a long time. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28025> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com