The IperfbinaryConverter is a conversion lookup table for binary data
Use class UnitNames to get valid unit names
Methods
__init__() | |
build_conversions() | builds the dictionary |
clear(() -> None. Remove all items from D.) | |
conversions(conversion_factor[, start_list]) | Creates the converter-lists |
copy(() -> a shallow copy of D) | |
fromkeys(...) | v defaults to None. |
get((k[,d]) -> D[k] if k in D, ...) | |
has_key((k) -> True if D has a key k, else False) | |
items(() -> list of D’s (key, value) pairs, ...) | |
iteritems(() -> an iterator over the (key, ...) | |
iterkeys(() -> an iterator over the keys of D) | |
itervalues(...) | |
keys(() -> list of D’s keys) | |
pop((k[,d]) -> v, ...) | If key is not found, d is returned if given, otherwise KeyError is raised |
popitem(() -> (k, v), ...) | 2-tuple; but raise KeyError if D is empty. |
setdefault((k[,d]) -> D.get(k,d), ...) | |
update(([E, ...) | If E present and has a .keys() method, does: for k in E: D[k] = E[k] |
values(() -> list of D’s values) | |
viewitems(...) | |
viewkeys(...) | |
viewvalues(...) |
Attributes
bits_to_bytes | List of conversions for bits to bytes |
bytes_to_bits | list of conversions for bytes to bits |
prefix_conversions | List of lists of prefix conversions |
builds the dictionary
Creates the converter-lists
Param: |
|
---|---|
Returns: | list of conversion_lists |
v defaults to None.
If key is not found, d is returned if given, otherwise KeyError is raised
2-tuple; but raise KeyError if D is empty.
If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
List of conversions for bits to bytes
list of conversions for bytes to bits
List of lists of prefix conversions