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 levkivskyi
Recipients carljm, gvanrossum, levkivskyi, methane, mwilbz, serhiy.storchaka, sir-sigurd, vstinner
Date 2018-11-20.11:17:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1542712674.26.0.788709270274.issue34995@psf.upfronthosting.co.za>
In-reply-to
Content
I am with Inada-san actually. I would go as far as saying that

@cached_property
@abstractmethod
def something(): ...

should unconditionally raise on definition. Mostly because this is just misleading. This declaration doesn't guarantee that the implementation will use caching (neither Python nor mypy can enforce this). Caching is an _implementation_ detail, while ABCs are used to specify _interface_.
History
Date User Action Args
2018-11-20 11:17:54levkivskyisetrecipients: + levkivskyi, gvanrossum, vstinner, carljm, methane, serhiy.storchaka, sir-sigurd, mwilbz
2018-11-20 11:17:54levkivskyisetmessageid: <1542712674.26.0.788709270274.issue34995@psf.upfronthosting.co.za>
2018-11-20 11:17:54levkivskyilinkissue34995 messages
2018-11-20 11:17:54levkivskyicreate