Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #64587

Re: No overflow in variables?

References <dd6a72bf-b1c4-4868-9cfe-76dfac8b8787@googlegroups.com> <CAPTjJmqkSc+9O5XUWO6Zvm82eZ+853qgGugzA-Vngui4VPAQjw@mail.gmail.com> <lbqmhd$h5r$1@ger.gmane.org>
Date 2014-01-23 20:36 +1100
Subject Re: No overflow in variables?
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.5879.1390469782.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Thu, Jan 23, 2014 at 8:14 PM, Christian Heimes <christian@python.org> wrote:
> 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.

Okay, wasn't sure. I've seen others that use GMP (including Pike,
which can also use arbitrary-precision floats if you wish). Wrong in
the specifics, right in the concept. Thanks for the correction.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

No overflow in variables? Philip Red <filippo.biolcati@googlemail.com> - 2014-01-22 10:09 -0800
  Re: No overflow in variables? Larry Martell <larry.martell@gmail.com> - 2014-01-22 11:18 -0700
  Re:No overflow in variables? Dave Angel <davea@davea.name> - 2014-01-22 13:26 -0500
  Re: No overflow in variables? Philip Red <filippo.biolcati@googlemail.com> - 2014-01-22 10:32 -0800
  Re: No overflow in variables? Chris Angelico <rosuav@gmail.com> - 2014-01-23 05:26 +1100
    Re: No overflow in variables? Roy Smith <roy@panix.com> - 2014-01-22 15:55 -0500
    Re: No overflow in variables? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-01-23 11:22 +1300
  Re: No overflow in variables? Philip Red <filippo.biolcati@googlemail.com> - 2014-01-22 10:48 -0800
  Re: No overflow in variables? random832@fastmail.us - 2014-01-22 18:13 -0500
  Re: No overflow in variables? Christian Heimes <christian@python.org> - 2014-01-23 10:14 +0100
  Re: No overflow in variables? Chris Angelico <rosuav@gmail.com> - 2014-01-23 20:36 +1100

csiph-web