This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients mark.dickinson, stutzbach
Date 2010-05-08.08:41:53
SpamBayes Score 0.0020550129
Marked as misclassified No
Message-id <1273308115.69.0.643080267318.issue8659@psf.upfronthosting.co.za>
In-reply-to
Content
I found:

- Long integer shift/mask operations now simulate 2's complement
  to give more useful results for negative operands

in Misc/HISTORY, for the Python 0.9.6 release.  That's different, though:  it's about Python's semantics, not C's.  It's orthogonal to the question of whether the underlying C implementation uses two's complement, ones' complement or sign-magnitude.

I can't find any explicit indication of a decision to assume that the hardware integers are two's complement anywhere;  as far as I know, no such decision was ever taken.

But of course your simplifications are valid regardless of the integer representation of the machine.
History
Date User Action Args
2010-05-08 08:41:56mark.dickinsonsetrecipients: + mark.dickinson, stutzbach
2010-05-08 08:41:55mark.dickinsonsetmessageid: <1273308115.69.0.643080267318.issue8659@psf.upfronthosting.co.za>
2010-05-08 08:41:53mark.dickinsonlinkissue8659 messages
2010-05-08 08:41:53mark.dickinsoncreate