Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardPythondescriptorsSingle-choice MCQ

functools.cached_property is implemented as which kind of descriptor, and what observable consequence does that have after the first access?

from functools import cached_property class C: @cached_property def v(self): return compute()