On 7/12/07, Steven Bethard email@example.com wrote:
On 7/12/07, Christian Heimes firstname.lastname@example.org wrote:
What do you think about this syntax?
class EasyExample: _a = 0.0 property a: """doc string """ def get(self) -> float: return self._a def set(self, value): self._a = float(value) def delete(self): del self._a
I'm pretty sure Guido's said before that he doesn't like the get/set/del methods being indented more than other instance methods would be. If you really like this style, you can get something like it today using inner classes: