Classes

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Nov 3 17:04:11 EST 2014


Jean-Michel Pichavant wrote:

> I agree with Steven on that one, while getters/setters are not the preferred
> way, they are not utterly wrong.

I'm not saying that they're wrong in general, only that
they're wrong for *Python*.

This matters, because the course in question is purportedly
teaching Python. To make a blanket statement like that in
a Python course, without pointing out that it applies
*only* to some languages *other* than Python, is grossly
misleading.

Now it may be that the quotation is taken out of context,
and the instructor did in fact point this out, but the
way the paragraph is worded, it sounds like it's just
been blindly lifted from some Java or C++ book.
-- 
Greg




More information about the Python-list mailing list