Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!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.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'subject:Python': 0.06; 'pep': 0.09; 'so?': 0.09; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'internally': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'integer': 0.24; 'merge': 0.24; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'character': 0.29; 'message-id:@mail.gmail.com': 0.30; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'received:209': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'removing': 0.60; 'effectively': 0.66; 'mar': 0.68; 'subject:long': 0.84; '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=Yz2dak9HyuW2r2zW/6i7LdOlEBTcxk+ooP7pEC06JSc=; b=qMAvmOydS7IShCIIF5QS3unMsT54v/NENc6gGqxwIiehmNITQB9dAB3R836A3pXsyR SVXPbhM4jcIQZyGe5IQmfwG+BwHJSnNIR3GunYXSBFbMaeILCWqrLH5pJE0OWZbbZaTO ALVfzkvNN5D5lzlLGYCDz1CvK0FiCnuwN4q2ZX1/Qy0HnMz6vvcL8FKlqX6WfltN2z07 3Hzm8dWF2C0jbvi+IrcMOnoFmS1FA2xmEIcprDsr7+5HoFvchilB59KbpqJyvuPfp3C+ uP7zN9n0Z7wk3jLJ2k6BTbVnORAYjH5xCxHU3QXHMWszxl+p9qs3257i/znavJivzVFr unAA== MIME-Version: 1.0 X-Received: by 10.52.16.211 with SMTP id i19mr554625vdd.91.1364324581896; Tue, 26 Mar 2013 12:03:01 -0700 (PDT) In-Reply-To: References: Date: Wed, 27 Mar 2013 06:03:01 +1100 Subject: Re: Performance of int/long in Python 3 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364324590 news.xs4all.nl 6849 [2001:888:2000:d::a6]:44504 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41943 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