File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -912,7 +912,7 @@ repetition is performed; a negative repetition factor yields an empty sequence.
912912
913913The ``/ `` (division) and ``// `` (floor division) operators yield the quotient of
914914their arguments. The numeric arguments are first converted to a common type.
915- Integer division yields a float, while floor division of integers results in an
915+ Division of integers yields a float, while floor division of integers results in an
916916integer; the result is that of mathematical division with the 'floor' function
917917applied to the result. Division by zero raises the :exc: `ZeroDivisionError `
918918exception.
@@ -972,8 +972,8 @@ the left or right by the number of bits given by the second argument.
972972
973973.. index :: exception: ValueError
974974
975- A right shift by *n * bits is defined as division by ``pow(2,n) ``. A left shift
976- by *n * bits is defined as multiplication with ``pow(2,n) ``.
975+ A right shift by *n * bits is defined as floor division by ``pow(2,n) ``. A left
976+ shift by *n * bits is defined as multiplication with ``pow(2,n) ``.
977977
978978.. note ::
979979
You can’t perform that action at this time.
0 commit comments