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`.`internet`.`_glibbase``

module documentation
(source)

This module provides base support for Twisted to interact with the glib/gtk mainloops.

The classes in this module should not be used directly, but rather you should import gireactor or gtk3reactor for GObject Introspection based applications, or glib2reactor or gtk2reactor for applications using legacy static bindings.

Class | `GlibReactorBase` | Base class for GObject event loop reactors.
Class | `GlibWaker` | Run scheduled events after waking up.
Class | `PortableGlibReactorBase` | Base class for GObject event loop reactors that works on Windows.
Function | `ensureNotImported` | Check whether the given modules were imported, and if requested, ensure they will not be importable in the future.

def ensureNotImported(moduleNames, errorMessage, preventImports=[]): (source)

Check whether the given modules were imported, and if requested, ensure they will not be importable in the future.

Parameters
moduleNames:`list` of `str` | A list of module names we make sure aren't imported.
errorMessage:`str` | Message to use when raising an `ImportError`.
preventImports:`list` of `str` | A list of module name whose future imports should be prevented.
Raises
`ImportError` | with given error message if a given module name has already been imported.