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.
On Thu, Jan 23, 2014 at 8:14 PM, Christian Heimes christ...@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.
On Wed, Jan 22, 2014 at 11:09 AM, Philip Red
filippo.biolc...@googlemail.com wrote:
Hi everyone. First of all sorry if my english is not good.
I have a question about something in Python I can not explain:
in every programming language I know (e.g. C#) if you exceed the max-value of
a certain
On Thu, Jan 23, 2014 at 5:09 AM, Philip Red
filippo.biolc...@googlemail.com wrote:
Now I do the same with Python:
x = 9223372036854775807
print(type(x)) # class 'int'
x = x * 2 # 18446744073709551614
print(x)
Thank you for your answers!
--
https://mail.python.org/mailman/listinfo/python-list
Thank you ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
In article mailman.5846.1390415644.18130.python-l...@python.org,
Chris Angelico ros...@gmail.com wrote:
The Python integer type stores arbitrary precision.
Which is not only really cool, but terribly useful for solving many
Project Euler puzzles :-)
--
Chris Angelico wrote:
(Which
means, no, Python cannot represent Graham's Number in an int. Sorry
about that.)
This is probably a good thing. I'm told that any computer
with enough RAM to hold Graham's number would, from entropy
considerations alone, have enough mass to become a black
hole.
--
On Wed, Jan 22, 2014, at 13:26, Chris Angelico wrote:
The Python integer type stores arbitrary precision. It's not a machine
word, like the C# integer types (plural, or does it have only one?
C# has the usual assortment of fixed-width integer types - though by
default they throw exceptions on