[Python-Dev] (some) C99 added to PEP 7

Steve Dower steve.dower at python.org
Thu Sep 8 16:35:21 EDT 2016


On 08Sep2016 1301, Chris Barker wrote:
> On Thu, Sep 8, 2016 at 9:39 AM, Random832 <random832 at fastmail.com
> <mailto:random832 at fastmail.com>> wrote:
>
>     You're talking about changing Py_ssize_t, right?
>
>
> wouldn't that be the pointer size?
>
> Is there a "long" in there anywhere in the integer implementation?
> [SNIP]
> Does py3 already use int64?

Py3 has used a variable-length int representation for its entire existence.

Python 3.0.1 (r301:69561, Feb 13 2009, 20:04:18) [MSC v.1500 32 bit 
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
 >>> 2**1000
10715086071862673209484250490600018105614048117055336074437503883703510511249361224931983788156958581275946729175531468251871452856923140435984577574698574803934567774824230985421074605062371141877954182153046474983581941267398767559165543946077062914571196477686542167660429831652624386837205668069376

Cheers,
Steve


More information about the Python-Dev mailing list