Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!news2.euro.net!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.018 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'suppose': 0.07; '22,': 0.09; 'bitwise': 0.16; 'exponent': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'operation,': 0.16; 'wrote:': 0.17; 'integer': 0.17; 'feb': 0.19; 'python?': 0.20; 'subject:problem': 0.22; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; "doesn't": 0.28; 'received:209.85.212': 0.28; 'no,': 0.29; 'fri,': 0.30; 'function': 0.30; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'short': 0.39; 'hand': 0.82; '2013': 0.84; 'different.': 0.84 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; bh=WSJzI5VU4Pi5x5bBwqqZoa21WBe37FTrh5Obkzx4D0s=; b=iUlourCpWg6tC4FygugV6lsd4I7TaCceY23B0RlsJtIzlpl4SLjhWa5auJMoEZwqgH ml62EBnS/q8stYiNlVrwTOugkE7fdXalEqB+cSasEXJP5+Jq7X9rvdsZ9XDzX2+zyr+a d/jtMK4oeiiVGpbrWgJcNCgK0x0yDzIqFB6IsdBor5Z7XlTcG4A0iIm6Z8sd9DXoKeF0 pVmYnnCbJ3AA9wFRwhfiSO4cPVL6jPoScHsZB3Vfz6bGWbj90bF/zACe2FhehVdTXVOP /AA94GJpAejrux8dj4r5aI3QD15xbBjcGz0IjDa1tU5REszEUG9WrDFOkVcn4Fwp91Vt 8KNw== MIME-Version: 1.0 X-Received: by 10.220.219.77 with SMTP id ht13mr33459216vcb.66.1361492987544; Thu, 21 Feb 2013 16:29:47 -0800 (PST) In-Reply-To: References: Date: Fri, 22 Feb 2013 11:29:47 +1100 Subject: Re: Confusing math problem 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.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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361492996 news.xs4all.nl 6859 [2001:888:2000:d::a6]:36475 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39504 On Fri, Feb 22, 2013 at 9:44 AM, Schizoid Man wrote: > > No, I was aware to be honest. I thought ** was just short hand for > math.pow(). Since ** is the integer operation, I suppose ^ doesn't work as > an exponent function in Python? ^ is bitwise XOR, completely different. ChrisA