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`.`failure`.`_Code``

class documentation

`class _Code: (source)`

View In Hierarchy

A fake code object, used by `_Traceback` via `_Frame`.

It is intended to have the same API as the stdlib code type to allow interoperation with other tools based on that interface.

Method | `__init__` | Undocumented
Method | `co_positions` | Undocumented
Instance Variable | `co_argcount` | Undocumented
Instance Variable | `co_cellvars` | Undocumented
Instance Variable | `co_code` | Undocumented
Instance Variable | `co_consts` | Undocumented
Instance Variable | `co_filename` | Undocumented
Instance Variable | `co_firstlineno` | Undocumented
Instance Variable | `co_flags` | Undocumented
Instance Variable | `co_freevars` | Undocumented
Instance Variable | `co_kwonlyargcount` | Undocumented
Instance Variable | `co_lnotab` | Undocumented
Instance Variable | `co_name` | Undocumented
Instance Variable | `co_names` | Undocumented
Instance Variable | `co_nlocals` | Undocumented
Instance Variable | `co_posonlyargcount` | Undocumented
Instance Variable | `co_stacksize` | Undocumented
Instance Variable | `co_varnames` | Undocumented

def __init__(self, name, filename): (source)

Undocumented

def co_positions(self): (source)

Undocumented

co_argcount: `int` = (source)

Undocumented

co_cellvars: `tuple` = (source)

Undocumented

co_code: `bytes` = (source)

Undocumented

co_consts: `tuple` = (source)

Undocumented

co_filename = (source)

Undocumented

co_firstlineno: `int` = (source)

Undocumented

co_flags: `int` = (source)

Undocumented

co_freevars: `tuple` = (source)

Undocumented

co_kwonlyargcount: `int` = (source)

Undocumented

co_lnotab: `bytes` = (source)

Undocumented

co_name = (source)

Undocumented

co_names: `tuple` = (source)

Undocumented

co_nlocals: `int` = (source)

Undocumented

co_posonlyargcount: `int` = (source)

Undocumented

co_stacksize: `int` = (source)

Undocumented

co_varnames: `list` = (source)

Undocumented