Description
The Property getter, setter & deleter methods need to have a different name than the property itself, otherwise the property instance will be replaced.
This is contradictory to python's own property
behaviour where the getter
decorator returns the property instead of the getter method and the name must match to the name of the property. However, an explicitly differently named getter/setter/deleter can be passed in the __init__
of python's property
. This is how one can have control over the naming styles in python's property
.
We should replicate this behaviour. Also the reason of not using python's property is already described in the documentation - python's own property does not allow foreign attributes as its a C implementation.
Rough number of steps:
- make our getter, setter, deleter
return self
orParameter
orProperty
instance - in our entire code base, where Properties and Parameters are used with getters/setters/deleters, rename the getter, setter and deleters to use the
Parameter
's name. - make sure tests also follow same convention
Metadata
Metadata
Assignees
Labels
Type
Projects
Status