Re: Re: [farm-report] Daily Snake Farm report
Mats Wichmann <[email protected]> Wed, 11 Sep 2002 10:04:26 -0600
| Newsgroups | gmane.comp.python.snake-farm.user |
|---|---|
| Message-ID | <[email protected]> |
>This is trying to ascertain that the list allocation code does its >range checking right, and in fact, on a 32 bit system, this should >never even call malloc. Ah... there was a brief chatter on this a while back, but it went nowhere. Probably wrong forum. I'm behind on my python-dev readings. ... >I'll see if I can fix range_length(). Because PySequence_Size() is >defined as an int (for better or for workse), range_length() has to >return an error if the length is out of range for ints. Then the >test will do something different (it won't test what it's supposed to >test) on 64-bit platforms; maybe we should not try this test on 64-bit >platforms, or replace sys.maxint/4 by 0x1fffffff. Something like that smells reasonable - (64-bit int)/4 seemed to have potential for trouble in any case. By the way, what *should* sys.maxint return on an LP64 platform? The "native" view of an "int" continues to 4-byte, but a Python int smells more like "the largest integer" (including longs).