Lines Matching refs:meth
69 has a method :meth:`do_foo`. As a special case, a line beginning with the
70 character ``'?'`` is dispatched to the method :meth:`do_help`. As another
72 method :meth:`do_shell` (if such a method is defined).
74 This method will return when the :meth:`postcmd` method returns a true value.
75 The *stop* argument to :meth:`postcmd` is the return value from the command's
76 corresponding :meth:`do_\*` method.
79 completing of commands args is done by calling :meth:`complete_foo` with
86 All subclasses of :class:`Cmd` inherit a predefined :meth:`do_help`. This
88 :meth:`help_bar`, and if that is not present, prints the docstring of
89 :meth:`do_bar`, if available. With no argument, :meth:`do_help` lists all
91 :meth:`help_\*` methods or commands that have docstrings), and also lists any
99 :meth:`precmd` and :meth:`postcmd` methods for useful execution hooks. The
101 interpreter should stop. If there is a :meth:`do_\*` method for the command
103 from the :meth:`default` method is returned.
121 :meth:`complete_\*` method is available. By default, it returns an empty list.
129 used as the command which will be executed by the :meth:`onecmd` method; the
130 :meth:`precmd` implementation may re-write the command or simply return *line*
139 execution will be terminated after the call to :meth:`postcmd`; this will be the
140 return value of the :meth:`onecmd` method. The return value of this method will
147 Hook method executed once when :meth:`cmdloop` is called. This method is a stub
153 Hook method executed once when :meth:`cmdloop` is about to return. This method
177 :meth:`cmdloop` when new input is needed; if it is nonempty, its elements
184 :meth:`cmdloop` method an argument.
195 topics (that is, there are :meth:`help_\*` methods without corresponding
196 :meth:`do_\*` methods).
202 (that is, there are :meth:`do_\*` methods without corresponding :meth:`help_\*`
214 A flag, defaulting to true. If true, :meth:`cmdloop` uses :func:`input` to
215 display a prompt and read the next command; if false, :meth:`sys.stdout.write`
216 and :meth:`sys.stdin.readline` are used. (This means that by importing
234 Basic turtle commands such as :meth:`~turtle.forward` are added to a
235 :class:`Cmd` subclass with method named :meth:`do_forward`. The argument is
240 the :meth:`~Cmd.precmd` method which is responsible for converting the input to
241 lowercase and writing the commands to a file. The :meth:`do_playback` method