This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mwilbz
Recipients mwilbz, serhiy.storchaka
Date 2018-10-17.16:27:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1539793635.19.0.788709270274.issue34995@psf.upfronthosting.co.za>
In-reply-to
Content
To add some more context, the existing Python documentation is a little misleading in this situation:

https://docs.python.org/3/library/abc.html#abc.abstractmethod

It shows that labeling a method with

@property
@abstractmethod

ought to be done in the order above, but this ordering currently breaks the abstract method check if you swap our @property for @cached_property. The documentation also says

"In order to correctly interoperate with the abstract base class machinery, the descriptor must identify itself as abstract using __isabstractmethod__." which @cached_property does not do, but as the documentation then shows, @property does do this properly.
History
Date User Action Args
2018-10-17 16:27:15mwilbzsetrecipients: + mwilbz, serhiy.storchaka
2018-10-17 16:27:15mwilbzsetmessageid: <1539793635.19.0.788709270274.issue34995@psf.upfronthosting.co.za>
2018-10-17 16:27:15mwilbzlinkissue34995 messages
2018-10-17 16:27:15mwilbzcreate