[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Lib xmlrpclib.py,1.11,1.12

Skip Montanaro skip@pobox.com (Skip Montanaro)
Wed, 10 Oct 2001 21:36:06 -0500


    Tim> If someone really cares about this, xmlrcplib is already broken in
    Tim> this respect, at least on 64-bit Linux boxes (where Python ints
    Tim> have always been 64 bits).

So instead of simply int()ing longs to marshal them, we should do something
like

    val = int(val)
    if val > 2L**31-1 or val < -2L**31:
        raise OverflowError

?  (Same test needed for ints...)

Skip