mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
#3010: clarification about stdin/use_rawinput.
This commit is contained in:
parent
700a635091
commit
a7ac20f8a5
1 changed files with 6 additions and 1 deletions
|
@ -26,7 +26,12 @@ interface.
|
|||
|
||||
The optional arguments *stdin* and *stdout* specify the input and output file
|
||||
objects that the Cmd instance or subclass instance will use for input and
|
||||
output. If not specified, they will default to *sys.stdin* and *sys.stdout*.
|
||||
output. If not specified, they will default to :data:`sys.stdin` and
|
||||
:data:`sys.stdout`.
|
||||
|
||||
If you want a given *stdin* to be used, make sure to set the instance's
|
||||
:attr:`use_rawinput` attribute to ``False``, otherwise *stdin* will be
|
||||
ignored.
|
||||
|
||||
.. versionchanged:: 2.3
|
||||
The *stdin* and *stdout* parameters were added.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue