Grant Edwards wrote:
On 2009-01-30, MRAB <goo...@mrabarnett.plus.com> wrote:Eric Kang wrote:In two's complement representation, can adding one positive and one negative give you overflow?No.AFAIK, in Python adding integers never gives you overlow regardless of sign.
Right, but he wants his homework answer. -- http://mail.python.org/mailman/listinfo/python-list