Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80165

Re: Classes

Date 2014-11-04 11:04 +1300
From Greg Ewing <greg.ewing@canterbury.ac.nz>
Subject Re: Classes
References <910361298.2515286.1415018501753.JavaMail.root@sequans.com>
Newsgroups comp.lang.python
Message-ID <mailman.15440.1415052257.18130.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Classes Greg Ewing <greg.ewing@canterbury.ac.nz> - 2014-11-04 11:04 +1300

csiph-web