Name | Description |
---|---|
namedtuple() | factory function for creating tuple subclasses with named fields |
deque | list-like container with fast appends and pops on either end |
ChainMap | dict-like class for creating a single view of multiple mappings |
… | … |
Namedtuple
Returns a new tuple subclass named typename. The new subclass is used to create tuple-like objects that have fields accessible by attribute lookup as well as being indexable and iterable.
OrderedDict
collections — Container datatypes — Python 3.10.7 documentation
A sorted dictionary. See also: Python Datatypes and Storage
popitem
(last=True)move_to_end
(key, last=True)