[issue26681] decorators for attributes

2016-03-31 Thread Ethan Furman
Ethan Furman added the comment: Please discuss this idea on the Python-Ideas mailing list first; if that goes well you can bring the idea to Python-Dev; if that also goes well feel free to reopen this issue. --- In the meantime you could probably do something with a custom descriptor/class d

[issue26681] decorators for attributes

2016-03-31 Thread Matthias welp
New submission from Matthias welp: This is a suggestion, and not final. The current ways to define the getter and setter methods for an attribute are these two: @property def name(): """ Docstring """ pass @name.setter def name(value): pass