cmd.Cmd.doc_header

Cmd.doc_header The header to issue if the help output has a section for documented commands.

cmd.Cmd.default()

Cmd.default(line) Method called on an input line when the command prefix is not recognized. If this method is not overridden, it prints an error message and returns.

cmd.Cmd.completedefault()

Cmd.completedefault(text, line, begidx, endidx) Method called to complete an input line when no command-specific complete_*() method is available. By default, it returns an empty list.

cmd.Cmd.cmdqueue

Cmd.cmdqueue A list of queued input lines. The cmdqueue list is checked in cmdloop() when new input is needed; if it is nonempty, its elements will be processed in order, as if entered at the prompt.

cmd.Cmd.cmdloop()

Cmd.cmdloop(intro=None) Repeatedly issue a prompt, accept input, parse an initial prefix off the received input, and dispatch to action methods, passing them the remainder of the line as argument. The optional argument is a banner or intro string to be issued before the first prompt (this overrides the intro class attribute). If the readline module is loaded, input will automatically inherit bash-like history-list editing (e.g. Control-P scrolls back to the last command, Control-N forward to

cmd.Cmd

class cmd.Cmd(completekey='tab', stdin=None, stdout=None) A Cmd instance or subclass instance is a line-oriented interpreter framework. There is no good reason to instantiate Cmd itself; rather, it’s useful as a superclass of an interpreter class you define yourself in order to inherit Cmd‘s methods and encapsulate action methods. The optional argument completekey is the readline name of a completion key; it defaults to Tab. If completekey is not None and readline is available, command compl

cmath.tanh()

cmath.tanh(x) Return the hyperbolic tangent of x.

cmath.tan()

cmath.tan(x) Return the tangent of x.

cmath.sqrt()

cmath.sqrt(x) Return the square root of x. This has the same branch cut as log().

cmath.sinh()

cmath.sinh(x) Return the hyperbolic sine of x.