cmd.Cmd.intro

Cmd.intro A string to issue as an intro or banner. May be overridden by giving the cmdloop() method an argument.

cmd.Cmd.identchars

Cmd.identchars The string of characters accepted for the command prefix.

cmd.Cmd.emptyline()

Cmd.emptyline() Method called when an empty line is entered in response to the prompt. If this method is not overridden, it repeats the last nonempty command entered.

cmd.Cmd.doc_header

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

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.sqrt()

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

cmath.tan()

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

cmath.tanh()

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

cmath.sinh()

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