Most voted "descriptors" questions
4 questions
Sort by count of
-
3
votes1
answer223
viewsOverride Property() in Child Class
A few days ago I asked a similar question to this, however, the method employed in creating the property was via decorators (@property and @name.setter). Here I am creating the property via function…
-
1
votes1
answer48
viewsPass Descriptor by parameter to another Descriptor
Let’s imagine that in a class I have two properties of the Scriptor type. The first of them ensures that the property in question is negative the second must ensure that the property associated with…
-
0
votes1
answer53
viewsDescriptor with meta class vs traditional
I’ve been watching the videos (example) by Luciano Ramalho on Descriptors with metaclass. I wanted to know the advantage of this model in relation to the more traditional implementation of…
-
0
votes1
answer119
views2 decorators in a Python method
Well, I have a very simple class called Task, where I want to store my tasks and then save in a bank. However, I want to go through the types of my attributes, I would like the task_name attribute…