Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.134.4.91.MISMATCH!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.025 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'consistency': 0.09; 'mind,': 0.09; 'subject:Why': 0.09; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'operators.': 0.16; 'wrote:': 0.18; 'alex': 0.19; 'value.': 0.19; 'certainly': 0.24; 'exhibit': 0.24; 'mon,': 0.24; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'though.': 0.31; 'guess': 0.33; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'received:google.com': 0.35; 'subject:?': 0.36; 'received:209': 0.37; 'expected': 0.38; 'to:addr:python-list': 0.38; 'little': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'more': 0.64; 'comprise': 0.91; '2013': 0.98 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=/PbpvZKyd5IxPFTX9lGaZcde+sXCCLeS/FPeK3UGNKA=; b=zG393IUjiTsZj1/N+C2Jp4+D2Dq3jmWRPj/SFsQhS+cONp0Hz4T0rPJf8QmgQFfGRA RduWyDqRh+NxIOg9HXE0AoY3u7uEt2KO4Ueq7lDEt7qqNkzXkQqWCXAt4cUXqoevLkpI TaOAUk6lWrp+o7/T6eQyB/snyt8BwSKIA/EJxQ3PN1XBOaH8vx9g5VW7uaMKiX10F5Cb cNJlLf8qYOrWMCMTKsvUmsTCmb0ksvmyWr+My7KRf0Ja+kdTuLUO/lruVXFdR8kmtsQA dA/Nfq8J6c5M6VSalvFx25gQ4okfmkICfl897WxAIXvV5Pm4ot9TctMkEp47NKMd2e/6 6ENg== MIME-Version: 1.0 X-Received: by 10.52.88.197 with SMTP id bi5mr6625471vdb.58.1364777899089; Sun, 31 Mar 2013 17:58:19 -0700 (PDT) In-Reply-To: References: <8e43bc87-e822-4bb3-b9ef-ccd489da8bf3@googlegroups.com> Date: Mon, 1 Apr 2013 11:58:18 +1100 Subject: Re: Why does 1**2**3**4**5 raise a MemoryError? 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364777901 news.xs4all.nl 6853 [2001:888:2000:d::a6]:39371 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42437 On Mon, Apr 1, 2013 at 11:39 AM, Alex wrote: > Given that > > 3 > 5 > 4 > > (i.e.: 4**5**3) is transitive, I would have expected Python to exhibit > more consistency with the other operators. I guess that is one of the > foolish consistencies that comprise the hobgoblins of my little mind, > though. Not sure what you mean by transitive here. Certainly (4**5)**3 and 4**(5**3) are not the same value. ChrisA