Message249339
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)) |
|
Date |
User |
Action |
Args |
2015-08-29 21:40:45 | eric.snow | set | recipients:
+ eric.snow, barry, guettli, erik.bray, yselivanov, ryanhiebert |
2015-08-29 21:40:45 | eric.snow | set | messageid: <1440884445.57.0.490707675635.issue24941@psf.upfronthosting.co.za> |
2015-08-29 21:40:45 | eric.snow | link | issue24941 messages |
2015-08-29 21:40:45 | eric.snow | create | |
|