On Tue, Dec 1, 2009 at 4:17 PM, James Y Knight <f...@fuhm.net> wrote: > I think all that needs to be defined is that conversion from unsigned to > signed, and (negative) signed to unsigned integers have 2's complement > wrapping semantics, and does not affect the bit pattern in memory.
Yes, I think everything does pretty much follow from this, since for ones' complement or sign-and-magnitude these wrapping semantics are impossible, because the signed type doesn't have enough distinct possible values. > Stating it that way makes it clearer that all you're assuming is the > operation of the cast operators, and it seems to me that it implies the other > requirements. Agreed. Thanks, Mark _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com