|
| | __init__ (self, *args, **kwds) |
| |
|
| __setitem__ (self, key, value, dict_setitem=dict.__setitem__) |
| |
|
| __delitem__ (self, key, dict_delitem=dict.__delitem__) |
| |
|
| __iter__ (self) |
| |
|
| __reversed__ (self) |
| |
|
| clear (self) |
| |
| | popitem (self, last=True) |
| |
|
| keys (self) |
| |
|
| values (self) |
| |
|
| items (self) |
| |
|
| iterkeys (self) |
| |
|
| itervalues (self) |
| |
|
| iteritems (self) |
| |
| | update (*args, **kwds) |
| |
| | pop (self, key, default=__marker) |
| |
|
| setdefault (self, key, default=None) |
| |
|
| __repr__ (self, _repr_running=None) |
| |
|
| __reduce__ (self) |
| |
|
| copy (self) |
| |
| | fromkeys (cls, iterable, value=None) |
| |
| | __eq__ (self, other) |
| |
|
| __ne__ (self, other) |
| |
|
| viewkeys (self) |
| |
|
| viewvalues (self) |
| |
|
| viewitems (self) |
| |
◆ __init__()
| pip._vendor.distlib.compat.OrderedDict.__init__ |
( |
|
self, |
|
|
* |
args, |
|
|
** |
kwds |
|
) |
| |
Initialize an ordered dictionary. Signature is the same as for
regular dictionaries, but keyword arguments are not recommended
because their insertion order is arbitrary.
◆ __eq__()
| pip._vendor.distlib.compat.OrderedDict.__eq__ |
( |
|
self, |
|
|
|
other |
|
) |
| |
od.__eq__(y) <==> od==y. Comparison to another OD is order-sensitive
while comparison to a regular mapping is order-insensitive.
◆ fromkeys()
| pip._vendor.distlib.compat.OrderedDict.fromkeys |
( |
|
cls, |
|
|
|
iterable, |
|
|
|
value = None |
|
) |
| |
OD.fromkeys(S[, v]) -> New ordered dictionary with keys from S
and values equal to v (which defaults to None).
◆ pop()
| pip._vendor.distlib.compat.OrderedDict.pop |
( |
|
self, |
|
|
|
key, |
|
|
|
default = __marker |
|
) |
| |
od.pop(k[,d]) -> v, remove specified key and return the corresponding value.
If key is not found, d is returned if given, otherwise KeyError is raised.
◆ popitem()
| pip._vendor.distlib.compat.OrderedDict.popitem |
( |
|
self, |
|
|
|
last = True |
|
) |
| |
od.popitem() -> (k, v), return and remove a (key, value) pair.
Pairs are returned in LIFO order if last is true or FIFO order if false.
◆ update()
| pip._vendor.distlib.compat.OrderedDict.update |
( |
* |
args, |
|
|
** |
kwds |
|
) |
| |
od.update(E, **F) -> None. Update od from dict/iterable E and F.
If E is a dict instance, does: for k in E: od[k] = E[k]
If E has a .keys() method, does: for k in E.keys(): od[k] = E[k]
Or if E is an iterable of items, does: for k, v in E: od[k] = v
In either case, this is followed by: for k, v in F.items(): od[k] = v
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/pip/_vendor/distlib/compat.py