Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news-transit.tcx.org.uk!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed6.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.024 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'rounds': 0.09; 'received:209.85.210.174': 0.13; 'received:mail- iy0-f174.google.com': 0.13; 'subject:was': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject: \n ': 0.16; 'subject:syntax': 0.16; 'truncated': 0.16; 'zero,': 0.16; 'wed,': 0.17; 'wrote:': 0.18; 'subject:not': 0.21; 'dec': 0.22; 'header:In-Reply-To:1': 0.22; 'division': 0.23; 'message-id:@mail.gmail.com': 0.28; 'toward': 0.29; 'pm,': 0.29; 'least': 0.30; 'subject:]': 0.32; 'to:addr:python-list': 0.34; 'nobody': 0.34; 'integer': 0.34; 'numbers.': 0.34; 'received:google.com': 0.37; 'problems': 0.37; 'received:209.85': 0.38; 'received:209': 0.40; 'to:addr:python.org': 0.40; '2011': 0.61; 'legal': 0.70; '10:47': 0.84; 'rusi': 0.84; 'wait,': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=1H5g6hKWkb293H9UPy5640I+U6o4TrQYfD1Cn2W/ERk=; b=SJBSbsCwBD6ToCPpqsEDBNmf6NgaO08EjKGTaSXj+GIL9UPi7KwKEE18pNHbKj+til uk6cO8lIbzPgLhmPndAwJZhPtwEEw8CkcYL2wxYXH3GKKKiN8eEGA16Q+oFi7jFBIQgt elnqieTWCxKphZASbigK76sW7AaRwteWLz/JA= MIME-Version: 1.0 In-Reply-To: <851cbabf-60b6-4806-bef5-e16f6089b08d@h37g2000pri.googlegroups.com> References: <4ee81592$0$11091$c3e8da3@news.astraweb.com> <851cbabf-60b6-4806-bef5-e16f6089b08d@h37g2000pri.googlegroups.com> Date: Wed, 14 Dec 2011 22:53:38 +1100 Subject: Re: % is not an operator [was Re: Verbose and flexible args and kwargs syntax] From: Chris Angelico 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1323863621 news.xs4all.nl 6930 [2001:888:2000:d::a6]:46989 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:17198 On Wed, Dec 14, 2011 at 10:47 PM, rusi wrote: > `quot` is integer division truncated toward zero, while the result of > `div` is truncated toward negative infinity. All these problems just because of negative numbers. They ought never to have been invented. At least nobody rounds toward positive infinity... oh wait, that's legal too. ChrisA