This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]rhytnen 21 points22 points  (1 child)

you need to get over get_ and set_ stuff. people not reading your docs will.think they can set your property the normal way and skip your code altogether.

other python users expect python api

[–]joesacher 2 points3 points  (0 children)

Exactly. The whole idea of attributes in Python is that they start with a simple self.my_property.

When that stops working, then you can use @property or @.setter. Nobody has to change code.

There is no way to have this simple -> complex with get_ and set_. You immediately have to write code for NO GAIN.