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
cf4d6997
Commit
cf4d6997
authored
Oct 01, 2014
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Plain Diff
Merge with 3.4
parents
f7b2aa51
1895f2b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
Doc/library/functions.rst
Doc/library/functions.rst
+8
-5
No files found.
Doc/library/functions.rst
View file @
cf4d6997
...
@@ -1083,8 +1083,8 @@ are always available. They are listed here in alphabetical order.
...
@@ -1083,8 +1083,8 @@ are always available. They are listed here in alphabetical order.
.. function:: print(*objects, sep=' ', end='\\n', file=sys.stdout, flush=False)
.. function:: print(*objects, sep=' ', end='\\n', file=sys.stdout, flush=False)
Print *objects* to the
stream *file*, separated by *sep* and followed by
Print *objects* to the
text stream *file*, separated by *sep* and followed
*end*. *sep*, *end* and *file*, if present, must be given as keyword
by
*end*. *sep*, *end* and *file*, if present, must be given as keyword
arguments.
arguments.
All non-keyword arguments are converted to strings like :func:`str` does and
All non-keyword arguments are converted to strings like :func:`str` does and
...
@@ -1094,9 +1094,12 @@ are always available. They are listed here in alphabetical order.
...
@@ -1094,9 +1094,12 @@ are always available. They are listed here in alphabetical order.
*end*.
*end*.
The *file* argument must be an object with a ``write(string)`` method; if it
The *file* argument must be an object with a ``write(string)`` method; if it
is not present or ``None``, :data:`sys.stdout` will be used. Whether output
is not present or ``None``, :data:`sys.stdout` will be used. Since printed
is buffered is usually determined by *file*, but if the *flush* keyword
arguments are converted to text strings, :func:`print` cannot be used with
argument is true, the stream is forcibly flushed.
binary mode file objects. For these, use ``file.write(...)`` instead.
Whether output is buffered is usually determined by *file*, but if the
*flush* keyword argument is true, the stream is forcibly flushed.
.. versionchanged:: 3.3
.. versionchanged:: 3.3
Added the *flush* keyword argument.
Added the *flush* keyword argument.
...
...
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