Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python,': 0.02; 'operator': 0.03; 'syntax': 0.04; 'wrong,': 0.09; 'cc:addr:python- list': 0.11; 'jan': 0.12; 'assume': 0.14; 'precedence': 0.16; 'roy': 0.16; 'hire': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'cc:addr:python.org': 0.22; 'instead.': 0.24; 'cc:2**0': 0.24; 'define': 0.26; 'possibly': 0.26; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'cases': 0.33; 'table': 0.34; 'definition': 0.35; 'received:google.com': 0.35; 'functions.': 0.36; "couldn't": 0.39; 'expression': 0.60; 'simple,': 0.60; 'full': 0.61; '30,': 0.65; 'smith': 0.68; 'everything.': 0.84; 'subject:True': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=hwfMilte4h1o5leSbYOsBUZlRfCeU8dU8Eivo/NNXCs=; b=NmB1ij4gT7v+/LLGUvR3VOE/HPn6KJ9qw6hRccHQ4l9invNCemTQRG9GHevaQI+tzC hbN8opyOkwLSHjQk/JUXFP9UxT8T1DiczUdU2WcLw2srU2gnKI/YC5bJ1iUDVHR+AW3L c1xL1v9cd7uIIDJfu8rImILKumPsLmdfsw1P9HCpSJ7ClkxpnLpM7lZkxugHjBDSXa6l ztMida+aB1k7m/rHi14VjFVtgrBm8FgfrfNuSrdrXf84ETfUiRt0uZTnV2LmE+arwHJ2 p6SCBZ3KPy/8JXHfIePNA4eQEl9hK4qFpe8jpw+Y7WvVgk9a5ecIq6uQY4kssZuaEC/E Oeyg== X-Received: by 10.224.28.197 with SMTP id n5mr19312509qac.43.1391092931671; Thu, 30 Jan 2014 06:42:11 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <99b0aa22-5fb3-460a-a080-dacb1c0f2fda@googlegroups.com> <3dcdc95d-5e30-46d3-b558-afedf9723c7c@googlegroups.com> From: Devin Jeanpierre Date: Thu, 30 Jan 2014 06:41:31 -0800 Subject: Re: 1 > 0 == True -> False To: Roy Smith Content-Type: text/plain; charset=UTF-8 Cc: "comp.lang.python" 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391092934 news.xs4all.nl 2937 [2001:888:2000:d::a6]:60357 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65012 On Thu, Jan 30, 2014 at 6:08 AM, Roy Smith wrote: > 1) Assume that you don't have the full operator precedence table > memorized and just parenthesize everything. > > 2) In cases where the expression is so simple, you couldn't possibly be > wrong, see rule #1. Also, assume you don't have the function definition syntax memorized, and just define functions. And assume you don't know Python, so just hire someone else to write your code instead. -- Devin