Ian Kelly ian.g.kelly at
Fri Oct 31 15:47:23 CET 2014

On Fri, Oct 31, 2014 at 8:05 AM, Seymore4Head
<Seymore4Head at hotmail.invalid> wrote:
> Because the topic of that lesson was getter setter.
> I can construct an __init___  but I was practicing get/set.

Doesn't sound like a very good lesson to me. Getters and setters are
the Java way of doing things. The Pythonic way is to just use an
attribute, and then replace it with a property in the unlikely event
that getter/setter logic needs to be added.

More information about the Python-list mailing list