[BangPypers] CPython's 'bignum' Implementation

Amit Saha amitsaha.in at gmail.com
Fri May 15 13:39:20 CEST 2009


Hello all,

So, from my SO question:
http://stackoverflow.com/questions/867393/how-do-languages-such-as-python-overcome-cs-integral-data-limits
, I learn that Python has 'bignum' for supporting Arbitrary Precision
arithmetic.

Now, how does CPython implement bignum? From what I gather, there is
more than way of doing it- using a different radix (base),  an array
of numbers. One hint is given by
http://www.python.org/dev/peps/pep-0237/. However, if any of you folks
know something concrete, I would appreciate it.

Thank You

Best,
Amit

-- 
Journal: http://amitksaha.wordpress.com
IRC: cornucopic on #scheme, #lisp, #math, #linux

"Recursion is the basic iteration mechanism in Scheme"
--- http://c2.com/cgi/wiki?TailRecursion


More information about the BangPypers mailing list