Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.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.091 X-Spam-Evidence: '*H*': 0.84; '*S*': 0.02; 'subject:Python': 0.06; 'oh,': 0.09; 'unified': 0.09; 'python': 0.11; '2.2,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'longs': 0.16; 'remembers': 0.16; 'wrote:': 0.18; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; "d'aprano": 0.31; 'steven': 0.31; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'received:209': 0.37; 'performance': 0.37; 'somebody': 0.38; 'to:addr:python- list': 0.38; 'to:addr:python.org': 0.39; 'royal': 0.61; 'managing': 0.66; 'mar': 0.68; '26,': 0.68; 'hand': 0.80; 'subject:long': 0.84; 'absolutely': 0.87; 'pita.': 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=+yN+xm32X6TnEBSbMwEvpOLQ4UprCKuMJmjKaJMVI8o=; b=l7T4+3jcfiRL0aVLDH+FIkpBH/hSIrkSNJjMmmGNfJWbRdT9S/llPHLa5+yu2DVOfw Lrhrzz7yLGCb0jUxk+wzO2/kbyO4XW+viHNAqGpWZSSNzpVXP5qf4Y78YbBFcGLBowHq 15KE2ASpmHExn7kMikUBigy7CMwkpc8GsJuLjMe4CDtbwyd9Z2xiXYHrWG16oZfR8FiN ZbEysp+srTVh31KQfpCRjFTzYC+o8puHcZpMUQMiUEit5SpP8gyadYSB+yfDEUIBRgdi L3ea5pszWw61Mz0auplbJw7y3g4mndjzHFDeZbsMhYHao9Szcw4h4M1ytU3MbIy4Ilwy hFYw== MIME-Version: 1.0 X-Received: by 10.52.22.194 with SMTP id g2mr15721591vdf.91.1364257706213; Mon, 25 Mar 2013 17:28:26 -0700 (PDT) In-Reply-To: <5150e900$0$29998$c3e8da3$5496439d@news.astraweb.com> References: <5150e900$0$29998$c3e8da3$5496439d@news.astraweb.com> Date: Tue, 26 Mar 2013 11:28:25 +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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364257709 news.xs4all.nl 6948 [2001:888:2000:d::a6]:47673 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41841 On Tue, Mar 26, 2013 at 11:17 AM, Steven D'Aprano wrote: > Also, speaking as somebody who remembers a time when ints where not > automatically promoted to longs (introduced in, Python 2.2, I think?) let > me say that having a single unified int type is *fantastic*, and managing > ints/longs by hand is a right royal PITA. Oh, I absolutely agree! I'm just looking at performance here, but definitely the int/long unification is a Good Thing. ChrisA