]> granicus.if.org Git - python/commitdiff
#3010: clarification about stdin/use_rawinput.
authorGeorg Brandl <georg@python.org>
Sat, 31 May 2008 14:40:09 +0000 (14:40 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 31 May 2008 14:40:09 +0000 (14:40 +0000)
Doc/library/cmd.rst

index 738214f389d897a3382909b25f6cd23a48be9794..5782b5bfaeddf575f7c348ccb8d4cf528cc1f6f5 100644 (file)
@@ -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.