class documentation

class Distance(MeasureBase):

View In Hierarchy

Undocumented

Constant ALIAS Undocumented
Constant LALIAS Undocumented
Constant STANDARD​_UNIT Undocumented
Constant UNITS Undocumented
Method __mul__ Undocumented

Inherited from MeasureBase:

Class Method unit​_attname Retrieve the unit attribute name for the given unit string. For example, if the given unit string is 'metre', return 'm'. Raise an exception if an attribute cannot be found.
Method __add__ Undocumented
Method __bool__ Undocumented
Method __eq__ Undocumented
Method __getattr__ Undocumented
Method __hash__ Undocumented
Method __iadd__ Undocumented
Method __imul__ Undocumented
Method __init__ Undocumented
Method __isub__ Undocumented
Method __itruediv__ Undocumented
Method __lt__ Undocumented
Method __repr__ Undocumented
Method __rmul__ Undocumented
Method __str__ Undocumented
Method __sub__ Undocumented
Method __truediv__ Undocumented
Method ​_get​_standard Undocumented
Method ​_set​_standard Undocumented
Method default​_units Return the unit value and the default units specified from the given keyword arguments dictionary.
Class Variable standard Undocumented
Instance Variable ​_default​_unit Undocumented
ALIAS: dict[str, str] =

Undocumented

Value
{'centimeter': 'cm',
 'foot': 'ft',
 'inches': 'inch',
 'kilometer': 'km',
 'kilometre': 'km',
 'meter': 'm',
 'metre': 'm',
...
LALIAS =

Undocumented

Value
{k.lower(): v for k, v in ALIAS.items()}
STANDARD_UNIT: str =
UNITS: dict[str, float] =

Undocumented

Value
{'chain': 20.1168,
 'chain_benoit': 20.116782,
 'chain_sears': 20.1167645,
 'british_chain_benoit': 20.1167824944,
 'british_chain_sears': 20.1167651216,
 'british_chain_sears_truncated': 20.116756,
 'cm': 0.01,
...
def __mul__(self, other):