EBookContacts.AddressWestern

Fields

Name

Type

Access

Description

country

str

r/w

Country

extended

str

r/w

TODO, we’re not sure what this is.

locality

str

r/w

City or town

po_box

str

r/w

PO Box.

postal_code

str

r/w

Postal Code

region

str

r/w

State or province

street

str

r/w

Street name

Methods

class

parse (in_address)

copy ()

free ()

Details

class EBookContacts.AddressWestern

Western address structure.

classmethod parse(in_address)
Parameters:

in_address (str or None) – a string representing a mailing address

Returns:

A new EBookContacts.AddressWestern structure, or None if the parsing failed or when the in_address was None.

Return type:

EBookContacts.AddressWestern or None

Parses a string representing a mailing address into a structure of type EBookContacts.AddressWestern.

copy()
Returns:

A new EBookContacts.AddressWestern struct identical to self.

Return type:

EBookContacts.AddressWestern

Creates a copy of self.

New in version 3.24.

free()

Frees self and its contents.