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
0e7d7901
Commit
0e7d7901
authored
Apr 02, 2010
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#8213: document behavior of -u on py3k better.
parent
b5eb6bce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
Doc/using/cmdline.rst
Doc/using/cmdline.rst
+3
-2
Misc/python.man
Misc/python.man
+6
-6
No files found.
Doc/using/cmdline.rst
View file @
0e7d7901
...
...
@@ -232,8 +232,9 @@ Miscellaneous options
.. cmdoption:: -u
Force stdin, stdout and stderr to be totally unbuffered. On systems where it
matters, also put stdin, stdout and stderr in binary mode.
Force the binary layer of the stdin, stdout and stderr streams (which is
available as their ``buffer`` attribute) to be unbuffered. The text I/O
layer will still be line-buffered.
See also :envvar:`PYTHONUNBUFFERED`.
...
...
Misc/python.man
View file @
0e7d7901
...
...
@@ -165,12 +165,12 @@ and the site-dependent manipulations of
that it entails.
.TP
.B \-u
Force
stdin, stdout and stderr to be totally unbuffered. On systems
where it matters, also put stdin, stdout and stderr in binary mode
.
Note that there is internal buffering in readlines() and
file-object iterators ("for line in sys.stdin") which is not
influenced by this option. To work around this, you will want to use
"sys.stdin.readline()" inside a "while 1:" loop.
Force
the binary I/O layers of stdin, stdout and stderr to be unbuffered.
The text I/O layer will still be line-buffered
.
.\"
Note that there is internal buffering in readlines() and
.\"
file-object iterators ("for line in sys.stdin") which is not
.\"
influenced by this option. To work around this, you will want to use
.\"
"sys.stdin.readline()" inside a "while 1:" loop.
.TP
.B \-v
Print a message each time a module is initialized, showing the place
...
...
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