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`.`web`.`wsgi`.`_ErrorStream``

class documentation

`class _ErrorStream: (source)`

View In Hierarchy

File-like object instances of which are used as the value for the `'wsgi.errors'` key in the `environ` dictionary passed to the application object.

This simply passes writes on to `logging` system as error events from the `'wsgi'` system. In the future, it may be desirable to expose more information in the events it logs, such as the application object which generated the message.

Method | `flush` | Nothing is buffered, so flushing does nothing. This method is required to exist by PEP 333, though.
Method | `write` | Generate an event for the logging system with the given bytes as the message.
Method | `writelines` | Join the given lines and pass them to `write` to be handled in the usual way.
Class Variable | `_log` | Undocumented

def flush(self): (source)

Nothing is buffered, so flushing does nothing. This method is required to exist by PEP 333, though.

This is called in a WSGI application thread, not the I/O thread.

def write(self, data): (source)

Generate an event for the logging system with the given bytes as the message.

This is called in a WSGI application thread, not the I/O thread.

Parameters
data:str | Undocumented
Raises
`TypeError` | On Python 3, if `data` is not a native string. On Python 2 a warning will be issued.

def writelines(self, iovec): (source)

Join the given lines and pass them to `write` to be handled in the usual way.

This is called in a WSGI application thread, not the I/O thread.

Parameters
iovec | A `list` of `'\n'`-terminated `str` which will be logged.
Raises
`TypeError` | On Python 3, if `iovec` contains any non-native strings. On Python 2 a warning will be issued.

_log = (source)

Undocumented