Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!border2.nntp.ams2.giganews.com!backlog4.nntp.ams3.giganews.com!backlog4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed3a.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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=python.org; s=200901; t=1390468486; bh=u1aZ2dKJBcXdDRegiZ//J7SEuDiYtKtweIrRG2pWmc8=; h=To:From:Subject:Date:References:In-Reply-To:From; b=p2YG4PVlTij32c688BNdLB2W8w5nLIeCFTKxvQd5JaJtGbIoR60B3lAN19Nh7Jgm7 XACh01Ui7ZmogNmTyTqa5S08WUnVscU36qW3mHAemf9Gj+Gsvh9vigmdp2dVyGiRFY XuJKDu/vAS2hvmzJ1hEZ57G2vY7Ub0kZuxbO6s78= X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '(even': 0.05; 'cpython': 0.05; 'scaling': 0.07; 'integers': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'arbitrarily': 0.16; 'from:name:christian heimes': 0.16; 'infinity': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'thereabouts.': 0.16; 'from:addr:python.org': 0.16; 'wrote:': 0.18; 'library': 0.18; 'bit': 0.19; 'header:User-Agent:1': 0.23; 'format,': 0.24; 'integer': 0.24; 'helpful': 0.24; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'gives': 0.31; 'but': 0.35; 'there': 0.35; 'subject:?': 0.36; 'being': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'cost.': 0.60; 'numbers': 0.61; 'worth': 0.66; 'believe': 0.68; 'difference.': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Christian Heimes Subject: Re: No overflow in variables? Date: Thu, 23 Jan 2014 10:14:34 +0100 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 212.12.46.3 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: X-Enigmail-Version: 1.5.2 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1390468486 news.xs4all.nl 2934 [2001:888:2000:d::a6]:35023 X-Complaints-To: abuse@xs4all.nl X-Original-Bytes: 3743 Xref: csiph.com comp.lang.python:64585 On 22.01.2014 19:26, Chris Angelico wrote: > Internally, I believe CPython uses the GNU Multiprecision Library > (GMP), which gives an efficient representation and operation format, > scaling to infinity or thereabouts. You can go to any size of integer > you like without there being any difference. There's a cost to that > (even small integers are a bit slower to work with), but it's SO > helpful to be able to work with arbitrarily large numbers that it's > worth that cost. Small correction: Python isn't using GMP. Python uses its own implementation.