Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'python,': 0.02; 'tutorial': 0.03; 'class,': 0.07; 'rewrite': 0.09; 'cc:addr :python-list': 0.11; 'class)': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:Classes': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'seems': 0.21; 'coding': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'class.': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'class': 0.32; 'could': 0.34; 'definition': 0.35; 'objects': 0.35; 'received:google.com': 0.35; 'accessing': 0.36; 'nov': 0.38; 'rather': 0.38; 'course.': 0.60; 'course': 0.61; "you've": 0.63; 'kind': 0.63; 'organization': 0.63; 'teaching': 0.64; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=SwXvGy+YagIJTadvT7Z9r3m0avjCkCdP/UwkgUTdj/k=; b=bmPyQnwvPPM3qCyPG/zvuxCFzPcIl9H15VSvcppesUysQ/FWSMR8tutzlwuBTqQVhM Cun2hnl025ggB2AhZUZSh4Bi4GRJ6ngD8NHZ5pAGzgGk1JwE/Y/wqRbiobTaevh7z3qh mDnhXqwhNmrV6ZRqvHP3LUXFftgQM+NrSApxL4CEEs69UKnGQaZIo2cSVrwoO3iOMOcd ax0OGZhF/mJbwsQTfBnXTwy3iprQwx/04MixP5g99u4g2lkeP+HiOxgAD1BKrhWvkf6M C8P1VkuZWbNpYzuqjLxjaEakcGWsnMur6tvzrQOV06DXqHDURr7QqWd//eqBuKUgOUYE lMGw== MIME-Version: 1.0 X-Received: by 10.42.37.138 with SMTP id y10mr24892783icd.26.1414773449861; Fri, 31 Oct 2014 09:37:29 -0700 (PDT) In-Reply-To: References: <51755at03r0bidjqh3qf0hhpvjr8756ill@4ax.com> <545350c3$0$23449$426a74cc@news.free.fr> Date: Sat, 1 Nov 2014 03:37:29 +1100 Subject: Re: Classes From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1414773458 news.xs4all.nl 2949 [2001:888:2000:d::a6]:42403 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80023 On Sat, Nov 1, 2014 at 3:31 AM, Seymore4Head wrote: [presumably quoting his course material] > In this class, we will follow the practice of accessing the contents > of objects using methods known as getters and setters. While not > required by Python, this practice encourages the user of the class to > manipulates class objects solely via class methods. The advantage of > following this practice is that the implementer of the class > definition (often someone other than the user of the class) may > restructure the organization of the data fields associated with the > object while avoiding the need to rewrite code that uses the class. Yep, that's teaching C++/Java coding using Python. Isn't it time you got onto a better course? Time and time again you've been going down inadvisable paths, and it seems to me you could do better with the inbuilt tutorial rather than this kind of course. ChrisA