summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-10-31 09:25:38 (GMT)
committerGeorg Brandl <georg@python.org>2014-10-31 09:25:38 (GMT)
commitfb52e38aba798042d1fae3959e318d149ee4d5d7 (patch)
tree771bab91e56f05a1cc7fb7327fe3d063e227815d
parentc182f888db39408790e973dad696c849fd3cada9 (diff)
downloadcpython-fb52e38aba798042d1fae3959e318d149ee4d5d7.zip
cpython-fb52e38aba798042d1fae3959e318d149ee4d5d7.tar.gz
cpython-fb52e38aba798042d1fae3959e318d149ee4d5d7.tar.bz2
#22613: document Cmd.cmdqueue (thanks Jacques Ducasse)
-rw-r--r--Doc/library/cmd.rst9
1 files changed, 8 insertions, 1 deletions
diff --git a/Doc/library/cmd.rst b/Doc/library/cmd.rst
index ea24122..05341d7 100644
--- a/Doc/library/cmd.rst
+++ b/Doc/library/cmd.rst
@@ -151,8 +151,8 @@ A :class:`Cmd` instance has the following methods:
Hook method executed once when :meth:`cmdloop` is about to return. This method
is a stub in :class:`Cmd`; it exists to be overridden by subclasses.
-Instances of :class:`Cmd` subclasses have some public instance variables:
+Instances of :class:`Cmd` subclasses have some public instance variables:
.. attribute:: Cmd.prompt
@@ -169,6 +169,13 @@ Instances of :class:`Cmd` subclasses have some public instance variables:
The last nonempty command prefix seen.
+.. attribute:: Cmd.cmdqueue
+
+ A list of queued input lines. The cmdqueue list is checked in
+ :meth:`cmdloop` when new input is needed; if it is nonempty, its elements
+ will be processed in order, as if entered at the prompt.
+
+
.. attribute:: Cmd.intro
A string to issue as an intro or banner. May be overridden by giving the