Custom dictionary implementation automatically normalizing keys.
More...
|
| def | __contains__ (self, key) |
| |
| def | __delitem__ (self, key) |
| |
| def | __eq__ (self, other) |
| |
| def | __getitem__ (self, key) |
| |
| def | __init__ (self, initial=None, ignore=(), caseless=True, spaceless=True) |
| | Initialized with possible initial value and normalizing spec. More...
|
| |
| def | __iter__ (self) |
| |
| def | __len__ (self) |
| |
| def | __setitem__ (self, key, value) |
| |
| def | __str__ (self) |
| |
| def | clear (self) |
| |
| def | copy (self) |
| |
Custom dictionary implementation automatically normalizing keys.
Definition at line 50 of file normalizing.py.
◆ __init__()
| def robot.utils.normalizing.NormalizedDict.__init__ |
( |
|
self, |
|
|
|
initial = None, |
|
|
|
ignore = (), |
|
|
|
caseless = True, |
|
|
|
spaceless = True |
|
) |
| |
Initialized with possible initial value and normalizing spec.
Initial values can be either a dictionary or an iterable of name/value
pairs. In the latter case items are added in the given order.
Normalizing spec has exact same semantics as with the :func:`normalize`
function.
Definition at line 60 of file normalizing.py.
◆ __contains__()
| def robot.utils.normalizing.NormalizedDict.__contains__ |
( |
|
self, |
|
|
|
key |
|
) |
| |
◆ __delitem__()
| def robot.utils.normalizing.NormalizedDict.__delitem__ |
( |
|
self, |
|
|
|
key |
|
) |
| |
◆ __eq__()
| def robot.utils.normalizing.NormalizedDict.__eq__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
◆ __getitem__()
| def robot.utils.normalizing.NormalizedDict.__getitem__ |
( |
|
self, |
|
|
|
key |
|
) |
| |
◆ __iter__()
| def robot.utils.normalizing.NormalizedDict.__iter__ |
( |
|
self | ) |
|
◆ __len__()
| def robot.utils.normalizing.NormalizedDict.__len__ |
( |
|
self | ) |
|
◆ __setitem__()
| def robot.utils.normalizing.NormalizedDict.__setitem__ |
( |
|
self, |
|
|
|
key, |
|
|
|
value |
|
) |
| |
◆ __str__()
| def robot.utils.normalizing.NormalizedDict.__str__ |
( |
|
self | ) |
|
◆ _add_initial()
| def robot.utils.normalizing.NormalizedDict._add_initial |
( |
|
self, |
|
|
|
initial |
|
) |
| |
|
private |
◆ clear()
| def robot.utils.normalizing.NormalizedDict.clear |
( |
|
self | ) |
|
◆ copy()
| def robot.utils.normalizing.NormalizedDict.copy |
( |
|
self | ) |
|
◆ _data
| robot.utils.normalizing.NormalizedDict._data |
|
private |
◆ _keys
| robot.utils.normalizing.NormalizedDict._keys |
|
private |
◆ _normalize
| robot.utils.normalizing.NormalizedDict._normalize |
|
private |
The documentation for this class was generated from the following file: