Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #26930
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'binary': 0.05; 'parser': 0.07; 'python': 0.09; 'precedence': 0.09; 'terry': 0.09; 'aug': 0.13; '"not"': 0.16; 'ah,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'operator.': 0.16; 'operators.': 0.16; 'reedy': 0.16; 'subject:values': 0.16; 'wrote:': 0.17; 'fix': 0.17; 'appears': 0.18; 'issue.': 0.20; 'trying': 0.21; 'received:209.85.214.174': 0.21; 'interpret': 0.22; 'header:In- Reply-To:1': 0.25; 'am,': 0.27; 'rules': 0.27; '(we': 0.27; 'message-id:@mail.gmail.com': 0.27; 'chris': 0.28; 'arithmetic': 0.29; 'point': 0.31; 'not.': 0.32; 'stands': 0.33; 'to:addr :python-list': 0.33; 'received:google.com': 0.34; 'expected': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; '12,': 0.36; 'limitation': 0.36; 'subject:with': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'lower': 0.61; 'stand': 0.61 |
| 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:to :content-type; bh=ZkeAwEe7ifqCxoyF5xUbulBMJtOBJAnOyDOkQcbhW/s=; b=CPLU5F6liMtRepqjcmx386sQW1wk+HMxYEKlopNoaF87mc/81sBXSkPARHwz9dFJRT 2L2U7ufBv3qG1wKBR2iF5RCk6UnMzLhKMwPIj0jyeDobCvjcUfQyU9ZCjQUtWeA60LgB QPCnDrFxhpX6tj9XrS7OaBE6/Ja5wRZZjYi8tXqEp6az43oUNrJMKzAevXsWd+O5aLJn jmoplaQolFwLMrfsJoN/XZ27DN1mf1ZWkLiRbNm3pr7ugiYQcTkneT4Ep6g8Q3z7cc4W XcQXHhlVExpmc3+oMHyO89RaSSktQQAn/qGT/Pzc6W35wcEXhKSRFyiUoQ/L9a8GT9zk I2hQ== |
| MIME-Version | 1.0 |
| In-Reply-To | <k06t79$53g$1@dough.gmane.org> |
| References | <58f60e60-1dc1-4265-a601-693d11b4bcec@googlegroups.com> <CAPTjJmp9rxwCxS5eeLq54N-csd6MyshCqSEqAjoUrzuj0XUOBg@mail.gmail.com> <k06t79$53g$1@dough.gmane.org> |
| Date | Sun, 12 Aug 2012 10:31:22 +1000 |
| Subject | Re: Arithmetic with Boolean values |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3201.1344731485.4697.python-list@python.org> (permalink) |
| Lines | 15 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1344731485 news.xs4all.nl 6947 [2001:888:2000:d::a6]:56402 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:26930 |
Show key headers only | View raw
On Sun, Aug 12, 2012 at 10:25 AM, Terry Reedy <tjreedy@udel.edu> wrote: > On 8/11/2012 7:13 PM, Chris Angelico wrote: >> This appears to be a limitation of the parser; it's trying to >> interpret "not" as a binary operator. > > I think not. It is lower precedence than all arithmetic operators. > (We humans see that that is impossible and > may boost the precedence in context.) Ah, I stand corrected. And once again, I kinda expected Python to follow the rules of my mental parser :) Anyway, point stands that parens will fix the issue. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Arithmetic with Boolean values John Ladasky <john_ladasky@sbcglobal.net> - 2012-08-11 15:30 -0700
Re: Arithmetic with Boolean values Chris Angelico <rosuav@gmail.com> - 2012-08-12 09:13 +1000
Re: Arithmetic with Boolean values Chris Rebert <clp2@rebertia.com> - 2012-08-11 16:53 -0700
Re: Arithmetic with Boolean values Terry Reedy <tjreedy@udel.edu> - 2012-08-11 20:25 -0400
Re: Arithmetic with Boolean values Chris Angelico <rosuav@gmail.com> - 2012-08-12 10:31 +1000
Re: Arithmetic with Boolean values MRAB <python@mrabarnett.plus.com> - 2012-08-12 01:36 +0100
Re: Arithmetic with Boolean values Paul Rubin <no.email@nospam.invalid> - 2012-08-11 17:54 -0700
Re: Arithmetic with Boolean values Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-08-12 11:22 +0000
Re: Arithmetic with Boolean values Roy Smith <roy@panix.com> - 2012-08-12 07:40 -0400
Re: Arithmetic with Boolean values Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-08-12 14:06 +0000
Re: Arithmetic with Boolean values Paul Rubin <no.email@nospam.invalid> - 2012-08-12 09:59 -0700
Re: Arithmetic with Boolean values Bernd Nawothnig <Bernd.Nawothnig@t-online.de> - 2012-08-12 19:21 +0200
Re: Arithmetic with Boolean values Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-08-12 19:20 +0100
Re: Arithmetic with Boolean values Roy Smith <roy@panix.com> - 2012-08-12 14:45 -0400
Re: Arithmetic with Boolean values Alister <alister.ware@ntlworld.com> - 2012-08-12 20:13 +0000
Re: Arithmetic with Boolean values Gene Heskett <gheskett@wdtv.com> - 2012-08-12 20:29 -0400
Re: Arithmetic with Boolean values Hans Mulder <hansmu@xs4all.nl> - 2012-08-14 18:32 +0200
csiph-web