Author eric.snow
Recipients barry, eric.snow, erik.bray, guettli, ryanhiebert, yselivanov
Date 2015-08-29.21:40:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1440884445.57.0.490707675635.issue24941@psf.upfronthosting.co.za>
In-reply-to
Content
I've posted a counter-proposal on python-ideas:

https://mail.python.org/pipermail/python-ideas/2015-August/035614.html

Basically: instead of "classproperty", add a more lenient alternative to classmethod which allows composition.  I called it "classresolved".

class classresolved:
    def __init__(self, wrapped):
        self.wrapped = wrapped
    def __get__(self, obj, cls):
        try:
            getter = self.wrapped.__get__
        except AttributeError:
            return self.wrapped
        return getter(cls, type(cls))
History
Date User Action Args
2015-08-29 21:40:45eric.snowsetrecipients: + eric.snow, barry, guettli, erik.bray, yselivanov, ryanhiebert
2015-08-29 21:40:45eric.snowsetmessageid: <1440884445.57.0.490707675635.issue24941@psf.upfronthosting.co.za>
2015-08-29 21:40:45eric.snowlinkissue24941 messages
2015-08-29 21:40:45eric.snowcreate