Message 321679 - Python tracker

Message321679

Author ncoghlan
Recipients CuriousLearner, docs@python, mark.dickinson, martin.panter, ncoghlan, tim.peters, wolma
Date 2018-07-15.05:55:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1531634101.64.0.56676864532.issue29710@psf.upfronthosting.co.za>
In-reply-to
Content
The restriction of the footnote to ``x & y``, ``x | y``, and ``x ^ y`` was going to come from the fact that only those rows in the table will reference the new note. However, it likely makes sense to repeat the relevant expressions in the footnote as well, since that makes it clearer what ``x`` and ``y`` refer to in the second sentence.

Latest proposal:

=================
The results of ``x | y``,  ``x ^ y``, and ``x & y`` are calculated as though carried out in two's complement with an infinite number of sign bits. In practice, performing the calculation with at least one extra sign extension bit (a working bit-width of ``1 + max(x.bit_length(), y.bit_length()`` or more) is sufficient to get the expected result.
=================
History
Date User Action Args
2018-07-15 05:55:01ncoghlansetrecipients: + ncoghlan, tim.peters, mark.dickinson, docs@python, martin.panter, wolma, CuriousLearner
2018-07-15 05:55:01ncoghlansetmessageid: <1531634101.64.0.56676864532.issue29710@psf.upfronthosting.co.za>
2018-07-15 05:55:01ncoghlanlinkissue29710 messages
2018-07-15 05:55:01ncoghlancreate