Accessors in Python (getters and setters)
- From: "mystilleef" <mystilleef@xxxxxxxxx>
- Date: 10 Jul 2006 05:19:47 -0700
Hello,
What is the Pythonic way of implementing getters and setters. I've
heard
people say the use of accessors is not Pythonic. But why? And what is
the alternative? I refrain from using them because they smell
"Javaish."
But now my code base is expanding and I'm beginning to appreciate the
wisdom behind them. I welcome example code and illustrations.
Regards
.
- Follow-Ups:
- Re: Accessors in Python (getters and setters)
- From: mystilleef
- Re: Accessors in Python (getters and setters)
- From: Diez B. Roggisch
- Re: Accessors in Python (getters and setters)
- From: Lawrence Oluyede
- Re: Accessors in Python (getters and setters)
- Prev by Date: Re: xml aggregator
- Next by Date: Re: Accessors in Python (getters and setters)
- Previous by thread: Need help in xml
- Next by thread: Re: Accessors in Python (getters and setters)
- Index(es):