sigh. never resync the CVS repository until you've fixed all bugs in your *own* code ;-) in 1.5.2:
array.array("h", [65535]) array('h', [-1])
array.array("H", [65535]) array('H', [65535])
in the current CVS version:
array.array("h", [65535]) Traceback (most recent call last): File "<stdin>", line 1, in ? OverflowError: signed short integer is greater than maximum
okay, this might break some existing code -- but one can always argue that such code were already broken. on the other hand:
array.array("H", [65535]) Traceback (most recent call last): File "<stdin>", line 1, in ? OverflowError: signed short integer is greater than maximum
oops. dunno if the right thing would be to add support for various kinds of unsigned integers to Python/getargs.c, or to hack around this in the array module... </F>