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`.`logger`.`_format`.`CallMapping``

class documentation

`class CallMapping(MappingABC): (source)`

View In Hierarchy

Read-only mapping that turns a `()`-suffix in key names into an invocation of the key rather than a lookup of the key.

Implementation support for `formatWithCall`.

Method | `__getitem__` | Look up an item in the submapping for this `CallMapping`, calling it if `key` ends with `"()"`.
Method | `__init__` | No summary
Method | `__iter__` | Undocumented
Method | `__len__` | Undocumented
Instance Variable | `_submapping` | Undocumented

def __getitem__(self, key): (source)

Look up an item in the submapping for this `CallMapping`, calling it if `key` ends with `"()"`.

Parameters
key:`str` | Undocumented
Returns
`Any` | Undocumented

def __init__(self, submapping): (source)

Parameters
submapping:`Mapping[str, Any]` | Another read-only mapping which will be used to look up items.

def __iter__(self): (source)

Undocumented

Returns
`Iterator` | Undocumented

def __len__(self): (source)

Undocumented

Returns
`int` | Undocumented

_submapping = (source)

Undocumented