Skip to content Skip to sidebar Skip to footer
Showing posts with the label Properties

Use Cases For Property Vs. Descriptor Vs. __getattribute__

The question refers to which one is preferable to be used in which use case, not about the technica… Read more Use Cases For Property Vs. Descriptor Vs. __getattribute__

Followup: Attribute Caching In Superclasses

This is a followup to this question. I have a class which caches an attribute for its subclasses: c… Read more Followup: Attribute Caching In Superclasses

Python Decorator Also For Undefined Attributes

I'd like to create a Model Class for an User. The data of the user are stored in an document ba… Read more Python Decorator Also For Undefined Attributes

Python Descriptor Vs Property

Possible Duplicate: When and why might I assign an instance of a descriptor class to a class attrib… Read more Python Descriptor Vs Property