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!newsfeed3.news.xs4all.nl!xs4all!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'subject:Python': 0.06; 'lawrence': 0.09; 'pep': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'so?': 0.09; 'python': 0.11; 'integer.': 0.16; 'internally': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.18; 'wed,': 0.18; '>>>': 0.22; 'header:User-Agent:1': 0.23; 'integer': 0.24; 'merge': 0.24; 'url:moin': 0.24; 'subject:/': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In- Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'character': 0.29; 'url:wiki': 0.31; '>>>>': 0.31; 'url:python': 0.33; 'but': 0.35; 'there': 0.35; 'url:org': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'read': 0.60; 'removing': 0.60; "you're": 0.61; 'charset:windows-1252': 0.65; 'effectively': 0.66; 'mar': 0.68; 'idiot.': 0.84; 'subject:long': 0.84; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Performance of int/long in Python 3 Date: Tue, 26 Mar 2013 20:50:28 +0000 References: <0b779c80-4f50-4716-8c30-47755c15f304@m12g2000yqp.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: host-92-18-20-125.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 In-Reply-To: <0b779c80-4f50-4716-8c30-47755c15f304@m12g2000yqp.googlegroups.com> X-Antivirus: avast! (VPS 130325-2, 25/03/2013), Outbound message X-Antivirus-Status: Clean 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: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364330979 news.xs4all.nl 6970 [2001:888:2000:d::a6]:56329 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41949 On 26/03/2013 20:44, jmfauth wrote: > On 26 mar, 20:03, Chris Angelico wrote: >> On Wed, Mar 27, 2013 at 5:50 AM, jmfauth wrote: >>> On 25 mar, 22:51, Chris Angelico wrote: >>>> The Python 3 merge of int and long has effectively penalized >>>> small-number arithmetic by removing an optimization. As we've seen >>>> from PEP 393 strings (jmf aside), there can be huge benefits from >>>> having a single type with multiple representations internally ... >> >>> ------ >> >>> A character is not an integer (short form). >> >> So? >> >> ChrisA > > A character is not an integer. > > jmf > But you are an idiot. -- If you're using GoogleCrap™ please read this http://wiki.python.org/moin/GoogleGroupsPython. Mark Lawrence