On 2014-10-31, Ian Kelly <ian.g.ke...@gmail.com> wrote: > On Fri, Oct 31, 2014 at 8:05 AM, Seymore4Head ><Seymore4Head@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.
It's not. It's teaching java or C++ or some other language while using a Python compiler. > 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. Exactly. -- Grant Edwards grant.b.edwards Yow! I have the power to at HALT PRODUCTION on all gmail.com TEENAGE SEX COMEDIES!! -- https://mail.python.org/mailman/listinfo/python-list