
Nov. 25, 2003
8:50 p.m.
I've submitted a patch (http://python.org/sf/849227). And yes, somebody should probably take a good look at it before applying. The (modified) test suite does pass on my machine, but that's all. I may well have forgotten to add tests for new special cases, and I'm not the most experienced C programmer on the block either.
Thanks!
As a side note, I think that line 233 in Lib/test/test_format.py
if sys.maxint == 2**32-1:
should be
if sys.maxint == 2**31-1:
but I didn't include that in the patch or submit a bug report. Should I?
This definitely smells like a bug (I've never seen a machine with 33-bit ints :-) so feel free to submit a separate patch to SF. --Guido van Rossum (home page: http://www.python.org/~guido/)