anod.qualifier¶
Classes¶
dict() -> new empty dictionary |
Module Contents¶
- class anod.qualifier.Qualifier¶
Bases:
dictdict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s
(key, value) pairs
- dict(iterable) -> new dictionary initialized as if via:
d = {} for k, v in iterable:
d[k] = v
- dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
- __sub__(other: Iterable[str]) Qualifier¶
Create a new dict qualifier with some keys filtered-out.
- Examples:
{“k1”: “v1”, “k2”: “v2”} - {“k2”} == {“k1”: “v1”} {“k1”: “v1”, “k2”: “v2”} - {“k2”: “v3”} == {“k1”: “v1”}
- __add__(other: dict | None) Qualifier¶
Create a new dict qualifier that merges two dicts.
The operation is equivalent to pipe operator with the difference that its priority is higher as defined by Python standard. This allows more natural expression that mix + and - operators (both operators have the same priority).