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`.`mail`.`smtp`.`Address``

class documentation

`class Address: (source)`

View In Hierarchy

Parse and hold an RFC 2821 address.

Source routes are stipped and ignored, UUCP-style bang-paths and %-style routing are not parsed.

Method | `__bytes__` | Undocumented
Method | `__init__` | Undocumented
Method | `__repr__` | Undocumented
Method | `__str__` | Undocumented
Method | `dequote` | Remove RFC-2821 quotes from address.
Class Variable | `atomre` | Undocumented
Class Variable | `dequotebs` | Undocumented
Class Variable | `tstring` | Undocumented
Instance Variable | `__dict__` | Undocumented
Instance Variable | `addrstr` | Undocumented
Instance Variable | `domain` | The domain within which this address resides.
Instance Variable | `local` | The local ("user") portion of this address.

def __bytes__(self): (source)

Undocumented

Returns
`bytes` | Undocumented

def __init__(self, addr, defaultDomain=None): (source)

Undocumented

def __repr__(self): (source)

Undocumented

Returns
`str` | Undocumented

def __str__(self): (source)

Undocumented

Returns
`str` | Undocumented

def dequote(self, addr): (source)

Remove RFC-2821 quotes from address.

atomre = (source)

Undocumented

dequotebs = (source)

Undocumented

tstring = (source)

Undocumented

__dict__ = (source)

Undocumented

addrstr = (source)

Undocumented

domain: `bytes` = (source)

The domain within which this address resides.

local: `bytes` = (source)

The local ("user") portion of this address.