Static caching property

Ian Kelly ian.g.kelly at gmail.com
Mon Mar 21 13:44:22 EDT 2016


On Mon, Mar 21, 2016 at 10:36 AM, Steven D'Aprano <steve at pearwood.info> wrote:
> On Tue, 22 Mar 2016 03:15 am, Ian Kelly wrote:
>> Why not do the same thing but using a class attribute instead of an
>> instance attribute?
>
> Properties don't work when called from a class:

Properties specifically do not, but descriptors in general do.



More information about the Python-list mailing list