Author ethan.furman
Recipients alex, christian.heimes, dstufft, ethan.furman, giampaolo.rodola, haypo, janssen
Date 2016-09-08.19:57:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473364634.27.0.684361683526.issue28025@psf.upfronthosting.co.za>
In-reply-to
Content
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.)
History
Date User Action Args
2016-09-08 19:57:14ethan.furmansetrecipients: + ethan.furman, janssen, haypo, giampaolo.rodola, christian.heimes, alex, dstufft
2016-09-08 19:57:14ethan.furmansetmessageid: <1473364634.27.0.684361683526.issue28025@psf.upfronthosting.co.za>
2016-09-08 19:57:14ethan.furmanlinkissue28025 messages
2016-09-08 19:57:14ethan.furmancreate