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. _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/7IOYKQDIR3NTNCHFBHWCPB46B2F2MLFS/ Code of Conduct: http://python.org/psf/codeofconduct/
