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
d4c33522
Commit
d4c33522
authored
Oct 01, 1998
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix encoding of \n in a couple of places (reported by Lorenzo
M. Catucci <lorenzo@argon.roma2.infn.it>).
parent
9d904b93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
Doc/ref/ref6.tex
Doc/ref/ref6.tex
+11
-11
No files found.
Doc/ref/ref6.tex
View file @
d4c33522
...
@@ -300,24 +300,24 @@ right type (but even this is determined by the sliced object).
...
@@ -300,24 +300,24 @@ right type (but even this is determined by the sliced object).
print
_
stmt: "print" [ expression ("," expression)* [","] ]
print
_
stmt: "print" [ expression ("," expression)* [","] ]
\end{verbatim}
\end{verbatim}
\keyword
{
print
}
evaluates each expression in turn and writes the
resulting
\keyword
{
print
}
evaluates each expression in turn and writes the
object to standard output (see below). If an object is not a string,
resulting object to standard output (see below). If an object is not
it is first converted to a string using the rules for string
a string, it is first converted to a string using the rules for string
conversions. The (resulting or original) string is then written. A
conversions. The (resulting or original) string is then written. A
space is written before each object is (converted and) written, unless
space is written before each object is (converted and) written, unless
the output system believes it is positioned at the beginning of a
the output system believes it is positioned at the beginning of a
line. This is the case (1) when no characters have yet been written
line. This is the case (1) when no characters have yet been written
to standard output, (2) when the last character written to standard
to standard output, (2) when the last character written to standard
output is
\character
{
\
\
n
}
, or (3) when the last write operation on standard
output is
\character
{
\
e
n
}
, or (3) when the last write operation on
output was not a
\keyword
{
print
}
statement. (In some cases it may be
standard output was not a
\keyword
{
print
}
statement. (In some cases
functional to write an empty string to standard output for this
it may be functional to write an empty string to standard output for
reason.)
this
reason.)
\index
{
output
}
\index
{
output
}
\indexii
{
writing
}{
values
}
\indexii
{
writing
}{
values
}
A
\character
{
\
\
n
}
character is written at the end, unless the
\keyword
{
print
}
A
\character
{
\
e
n
}
character is written at the end, unless the
statement ends with a comma. This is the only action if the statement
\keyword
{
print
}
statement ends with a comma. This is the only action
contains just the keyword
\keyword
{
print
}
.
if the statement
contains just the keyword
\keyword
{
print
}
.
\indexii
{
trailing
}{
comma
}
\indexii
{
trailing
}{
comma
}
\indexii
{
newline
}{
suppression
}
\indexii
{
newline
}{
suppression
}
...
...
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