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
6d20caa2
Commit
6d20caa2
authored
Apr 21, 1999
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reflow paragraph to work around LaTeX2HTML dropping a space.
parent
543e19d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
Doc/lib/libstdtypes.tex
Doc/lib/libstdtypes.tex
+7
-8
No files found.
Doc/lib/libstdtypes.tex
View file @
6d20caa2
...
...
@@ -393,14 +393,13 @@ The following format characters are understood:
\code
{
x
}
,
\code
{
X
}
,
\code
{
e
}
,
\code
{
E
}
,
\code
{
f
}
,
\code
{
g
}
,
\code
{
G
}
.
Width and precision may be a
\code
{
*
}
to specify that an integer argument
specifies the actual width or precision. The flag characters
\code
{
-
}
,
\code
{
+
}
, blank,
\code
{
\#
}
and
\code
{
0
}
are understood. The
size specifiers
\code
{
h
}
,
\code
{
l
}
or
\code
{
L
}
may be
present but are ignored. The
\code
{
\%
s
}
conversion takes any Python
object and converts it to a string using
\code
{
str()
}
before
formatting it. The ANSI features
\code
{
\%
p
}
and
\code
{
\%
n
}
are not supported. Since Python strings have an explicit length,
\code
{
\%
s
}
conversions don't assume that
\code
{
'
\e
0'
}
is the end of
the string.
\code
{
-
}
,
\code
{
+
}
, blank,
\code
{
\#
}
and
\code
{
0
}
are understood. The
size specifiers
\code
{
h
}
,
\code
{
l
}
or
\code
{
L
}
may be present but are
ignored. The
\code
{
\%
s
}
conversion takes any Python object and
converts it to a string using
\code
{
str()
}
before formatting it. The
ANSI features
\code
{
\%
p
}
and
\code
{
\%
n
}
are not supported. Since
Python strings have an explicit length,
\code
{
\%
s
}
conversions don't
assume that
\code
{
'
\e
0'
}
is the end of the string.
For safety reasons, floating point precisions are clipped to 50;
\code
{
\%
f
}
conversions for numbers whose absolute value is over 1e25
...
...
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