[Python-Dev] Type of range object members

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Aug 16 03:47:37 CEST 2006


Guido van Rossum wrote:

> On 8/15/06, James Y Knight <foom at fuhm.net> wrote:
 >
>>There's no particular reason that a short int must be able to store
>>the entire range of C "long", so, as many bits can be stolen from it
>>as desired.
> 
> There isn't? Actually a lot of APIs currently assumen that.

Also it means you'd pay a penalty every time you
access it, whereas presumably short ints are the
case we want to optimise for speed as well.

--
Greg



More information about the Python-Dev mailing list