[issue29710] Incorrect representation caveat on bitwise operation docs

Sanyam Khurana report at bugs.python.org
Mon Jul 23 15:01:04 EDT 2018


Sanyam Khurana <sanyam.khurana01 at gmail.com> added the comment:

Hey Tim,

> @CuriousLearner, does the PR also include Nick's first suggested change?  Here:

"""
=====================
Bitwise operations only make sense for integers. The result of bitwise operations is calculated as though carried out in two's complement with an infinite number of sign bits.
=====================
"""

I think it was then discussed to keep this line as:

"""
===========
Bitwise operations only make sense for integers. Negative numbers are treated as their 2's complement value.
===========
"""

Does this needs to be changed?

Here is the link of the PR: https://github.com/python/cpython/pull/1691/files#diff-7498e907ba97646df434a0eb583c6909

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue29710>
_______________________________________


More information about the Python-bugs-list mailing list