Message330127
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_. |
|
Date |
User |
Action |
Args |
2018-11-20 11:17:54 | levkivskyi | set | recipients:
+ levkivskyi, gvanrossum, vstinner, carljm, methane, serhiy.storchaka, sir-sigurd, mwilbz |
2018-11-20 11:17:54 | levkivskyi | set | messageid: <1542712674.26.0.788709270274.issue34995@psf.upfronthosting.co.za> |
2018-11-20 11:17:54 | levkivskyi | link | issue34995 messages |
2018-11-20 11:17:54 | levkivskyi | create | |
|