
Dec. 16, 2020
1:31 a.m.
03.01.11 23:09, K. Richard Pixley пише:
There's a whole matrix of these and I'm wondering why the matrix is currently sparse rather than implementing them all. Or rather, why we can't stack them as:
class foo(object): @classmethod @property def bar(cls, ...): ...
You can. And you can add also abstractmethod. Not all combinations work in arbitrary order, but you can find the right order if it makes any sense. Things like abstractclassmethod are legacy. It is more preferable to combine elemental decorators.