Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c13d6041
Commit
c13d6041
authored
Oct 08, 2013
by
Georg Brandl
Browse files
Options
Browse Files
Download
Plain Diff
merge with 3.3
parents
bc332a24
0aaae265
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Doc/reference/expressions.rst
Doc/reference/expressions.rst
+3
-3
No files found.
Doc/reference/expressions.rst
View file @
c13d6041
...
...
@@ -912,7 +912,7 @@ repetition is performed; a negative repetition factor yields an empty sequence.
The ``/`` (division) and ``//`` (floor division) operators yield the quotient of
their arguments. The numeric arguments are first converted to a common type.
Integer division
yields a float, while floor division of integers results in an
Division of integers
yields a float, while floor division of integers results in an
integer; the result is that of mathematical division with the 'floor' function
applied to the result. Division by zero raises the :exc:`ZeroDivisionError`
exception.
...
...
@@ -972,8 +972,8 @@ the left or right by the number of bits given by the second argument.
.. index:: exception: ValueError
A right shift by *n* bits is defined as
division by ``pow(2,n)``. A left shi
ft
by *n* bits is defined as multiplication with ``pow(2,n)``.
A right shift by *n* bits is defined as
floor division by ``pow(2,n)``. A le
ft
shift
by *n* bits is defined as multiplication with ``pow(2,n)``.
.. note::
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment