[Python-Dev] longobject.c & ob_size

Armin Rigo arigo at tunes.org
Mon Apr 4 08:10:43 CEST 2005

Hi Michael,

On Sun, Apr 03, 2005 at 04:14:16PM +0100, Michael Hudson wrote:
> Asking mostly for curiousity, how hard would it be to have longs store
> their sign bit somewhere less aggravating?

As I guess your goal is to get rid of all the "if (size < 0) size = -size" in
object.c and friends, I should point out that longobject.c has set out an
example that might have been followed by C extension writers.  Maybe it is too
late to say now that ob_size cannot be negative any more :-(


More information about the Python-Dev mailing list