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 CuriousLearner, docs@python, mark.dickinson, martin.panter, ncoghlan, tim.peters, wolma
Date 2018-07-16.18:44:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531766679.64.0.56676864532.issue29710@psf.upfronthosting.co.za>
In-reply-to
Content
The wording for change 1 looks fine to me.

For change 2, the mention of the internal representation is misleading, since the internal representation of (long) integers in current CPython is effectively sign-magnitude, and so there are some shenanigans to make the operations behave *as though* the internal representation were some form of two's complement [1]. The previously proposed wording (in msg321679) (with the "infinite sign bits" extracted into the main text as Tim suggests) looks fine to me.

[1] https://github.com/python/cpython/blob/c9265c1534b7e62bb9b15460d0420c0c3bb57ff9/Objects/longobject.c#L4415-L4429
History
Date User Action Args
2018-07-16 18:44:39mark.dickinsonsetrecipients: + mark.dickinson, tim.peters, ncoghlan, docs@python, martin.panter, wolma, CuriousLearner
2018-07-16 18:44:39mark.dickinsonsetmessageid: <1531766679.64.0.56676864532.issue29710@psf.upfronthosting.co.za>
2018-07-16 18:44:39mark.dickinsonlinkissue29710 messages
2018-07-16 18:44:39mark.dickinsoncreate