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`.`python`.`util`.`IntervalDifferential``

class documentation

`class IntervalDifferential: (source)`

View In Hierarchy

Given a list of intervals, generate the amount of time to sleep between "instants".

For example, given 7, 11 and 13, the three (infinite) sequences:

        7 14 21 28 35 ...
        11 22 33 44 ...
        13 26 39 52 ...

will be generated, merged, and used to produce:

        (7, 0) (4, 1) (2, 2) (1, 0) (7, 0) (1, 1) (4, 2) (2, 0) (5, 1) (2, 0)

New intervals may be added or removed as iteration proceeds using the proper methods.

Method | `__init__` | No summary
Method | `__iter__` | Undocumented
Instance Variable | `default` | Undocumented
Instance Variable | `intervals` | Undocumented

def __init__(self, intervals, default=60): (source)

Parameters
intervals:`list` of `int`, `long`, or `float` param | The intervals between instants.
default:`int`, `long`, or `float` | The duration to generate if the intervals list becomes empty.

def __iter__(self): (source)

Undocumented

default = (source)

Undocumented

intervals = (source)

Undocumented