Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!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; 'subject:Windows': 0.02; 'subject:Python': 0.06; 'detect': 0.07; 'bits': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; 'windows': 0.15; '10:05': 0.16; 'both,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'integer.': 0.16; 'subject: \n ': 0.16; 'subject:between': 0.16; 'subject:bit': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'cc:addr:python.org': 0.22; '2.x': 0.24; 'integer': 0.24; 'versions': 0.24; "haven't": 0.24; 'cc:2**0': 0.24; 'switch': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'needed.': 0.30; 'message-id:@mail.gmail.com': 0.30; '13,': 0.31; '3.x': 0.31; 'maybe': 0.34; 'subject:the': 0.34; 'knows': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'doing': 0.36; 'subject:?': 0.36; 'detail': 0.37; 'searching': 0.37; 'sometimes': 0.38; 'does': 0.39; 'even': 0.60; 'promotion': 0.63; 'hours': 0.66; 'between': 0.67; 'anything.': 0.68; 'confirm.': 0.91; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=xoSi6kbuXdWXO/wPkIdhFgLEtSZ+DiyZOXurhN7D+/o=; b=OeiaYvKmcePj/GSwn5QU403p0STxncFhdS8gHSxvBEkDFK+j6CYbWZBuhdCR8EXT7W FpkIYo6lf2aMfkd2y6C5UbMffsVztR66aQNo4R0raBn9jPkeUnbrsJgW06rdlrJBdVPD e7pOod/DrTzSgHCHgEX/NUXAd8+hl7yt5HqRkJcxZ7dHL0McQPg5v00iTDc+r1NxVSs9 6TKuN+OmehNgFYqL5OPb7IBgd21L4rC5I1i+UGSmJM1rQID7moS4C/dthi/X1y/OSj1C PQlnb0jsrBjgscbUK2DAtsIj/hqQaw9HjsSl9SOR8pYay1t5NRqKPp5QfDw/lia75EAw wEgg== MIME-Version: 1.0 X-Received: by 10.52.153.229 with SMTP id vj5mr3548026vdb.34.1399939798064; Mon, 12 May 2014 17:09:58 -0700 (PDT) In-Reply-To: References: Date: Tue, 13 May 2014 10:09:58 +1000 Subject: Re: What is the difference between 32 and 64 bit Python on Windows 7 64 bit? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1399939806 news.xs4all.nl 2835 [2001:888:2000:d::a6]:55145 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:71410 On Tue, May 13, 2014 at 10:05 AM, Sturla Molden wrote: > On 11/05/14 08:56, Ross Gayler wrote: > >> Is that true?I have spent a couple of hours searching for a definitive >> description of the difference between the 32 and 64 bit versions of >> Python for Windows and haven't found anything. > > > Why do you care if a Python int object uses 32 or 64 bits internally? Python > 2.x will automatically switch to long when needed. The size of the Python > integer is an internal implementation detail you will not notice. Python > knows when to use a long instead of an int. Python 3.x does not even have a > fixed-size integer. Sometimes you just want to confirm. :) Or maybe you want your program to be able to detect which it's on. There are ways of doing both, but sys.maxint isn't one of them, as it's specific to the int->long promotion of Py2. ChrisA