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
c47f1c19
Commit
c47f1c19
authored
Dec 26, 2005
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #839585: mention % string operator in language ref
parent
10141742
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Doc/ref/ref5.tex
Doc/ref/ref5.tex
+6
-0
No files found.
Doc/ref/ref5.tex
View file @
c47f1c19
...
...
@@ -777,6 +777,12 @@ approximately where \code{x/y} is replaced by \code{floor(x/y)} or
* y + x
\%
{}
y
}
be very close to
\code
{
x
}
.
}
.
In addition to performing the modulo operation on numbers, the
\code
{
\%
}
operator is also overloaded by string and unicode objects to perform
string formatting (also known as interpolation). The syntax for string
formatting is described in the Python Library Reference, section
``Sequence Types''.
\deprecated
{
2.3
}{
The floor division operator, the modulo operator,
and the
\function
{
divmod()
}
function are no longer defined for complex
numbers. Instead, convert to a floating point number using the
...
...
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