Go to the latest version of this document.
search in docstrings

Search bar offers the following options:

- Term presence. The below example searches for documents that must contain “foo”, might contain “bar” and must not contain “baz”: `+foo bar -baz`
- Wildcards. The below example searches for documents with words beginning with “foo”: `foo*`
- Search in specific fields. The following search matches all objects in "twisted.mail" that matches “search”: `+qname:twisted.mail.* +search`

  Possible fields: 'name', 'qname' (fully qualified name), 'docstring', and 'kind'. Last two fields are only applicable if "search in docstrings" is enabled.

- Fuzzy matches. The following search matches all documents that have a word within 1 edit distance of “foo”: `foo~1`

Results provided by Lunr.js

# ``twisted`.`words`.`protocols`.`irc`.`_CommandDispatcherMixin``

class documentation

`class _CommandDispatcherMixin: (source)`

Known subclasses: `twisted.words.protocols.irc.ServerSupportedFeatures`, `twisted.words.protocols.irc._FormattingParser`

View In Hierarchy

Dispatch commands to handlers based on their name.

Command handler names should be of the form `prefix_commandName`, where `prefix` is the value specified by `prefix`, and must accept the parameters as given to `dispatch`.

Attempting to mix this in more than once for a single class will cause strange behaviour, due to `prefix` being overwritten.

Method | `dispatch` | Perform actual command dispatch.
Instance Variable | `prefix` | Command handler prefix, used to locate handler attributes

def dispatch(self, commandName, *args): (source)

Perform actual command dispatch.

prefix: `str` = (source)
overridden in `twisted.words.protocols.irc.ServerSupportedFeatures`, `twisted.words.protocols.irc._FormattingParser`

Command handler prefix, used to locate handler attributes