Nick Coghlan <ncogh...@gmail.com> added the comment:

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.
=================

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue29710>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to