Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3.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.025 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'subject:Python': 0.05; '"if': 0.09; '22,': 0.09; 'comparison.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'means.': 0.16; 'wrote:': 0.17; 'code,': 0.18; 'feb': 0.19; 'code.': 0.20; 'define': 0.20; 'work.': 0.23; 'statement': 0.23; 'testing': 0.24; 'header:In- Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'lines': 0.28; 'testing.': 0.29; 'this.': 0.29; 'fri,': 0.30; 'code': 0.31; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'along': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'but': 0.36; 'detail': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'object': 0.38; 'to:addr:python.org': 0.39; 'most': 0.61; 'time,': 0.62; 'study': 0.66; '2013': 0.84; 'confusing': 0.84; 'incredibly': 0.96 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=1V/J5ce2TqJNuLwOB/DUnjJfLIodujj4GrF25uYdVwI=; b=ro/zO2JNX0KVPpIrJ5xM44ct527CkzSwjhL6HVZxuCFHAINqwe/sdMZ8xuduxOOnBf CN+7c7/gH5kxHc8lt7mwUKeT5OWpMZdTfW7P3dDER9Go2u+n5aCaNuR4dEzJ9yfw3wzR n1thX6pV9Ba2wznvjV9VkHyhdHlKD8u1T6gHBbQbkg9kqcROohoaU7AlY2wTtIls/FTV Poo2eQJ1AuF9T9DwONEOyc/5Pa73Ay50iKxO4odMXiYRBQH+zqrHuRivo0tjMHa8f18m 5IhIQpV4zp0MqN9OyX+2enEgTqRkI9J7uH1aHkEWRUegmNlx1PRjVa6TDGFfInLvx7pG Uy7w== MIME-Version: 1.0 X-Received: by 10.220.219.77 with SMTP id ht13mr33468246vcb.66.1361493143413; Thu, 21 Feb 2013 16:32:23 -0800 (PST) In-Reply-To: <52a5d2ab-5cf8-483f-b0b0-15260e4bda2a@googlegroups.com> References: <5c262e95-b3a8-4f2a-b752-84b30bf4f81e@googlegroups.com> <52a5d2ab-5cf8-483f-b0b0-15260e4bda2a@googlegroups.com> Date: Fri, 22 Feb 2013 11:32:23 +1100 Subject: Re: Python Newbie From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361493151 news.xs4all.nl 6944 [2001:888:2000:d::a6]:39032 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39505 On Fri, Feb 22, 2013 at 10:34 AM, wrote: > Thanks for this. Regarding ambiguity, you will never find me write ambigu= ous code. I don't sabotage my own work. But the reality is that in addition= to writing my own code, I have to maintain existing. I find it incredibly = confusing then I see a statement along the lines of "if not something" - ha= ve to study the code in detail to see what it is testing. It's testing something - specifically, whether or not the object wants to "feel true" or "feel false". It's up to the object to define what that means. Most of the time, it's exactly what you want. When it isn't, you can put an exact comparison. ChrisA