collections
Module¶
Data structures.
-
class
wpull.collections.
FrozenDict
(orig_dict)[source]¶ Bases:
collections.abc.Mapping
,collections.abc.Hashable
Immutable mapping wrapper.
-
hash_cache
¶
-
orig_dict
¶
-
-
class
wpull.collections.
LinkedList
[source]¶ Bases:
object
Doubly linked list.
-
map
¶ dict
A mapping of values to nodes.
-
head
¶ -
The first node.
-
tail
¶ -
The last node.
-
-
class
wpull.collections.
LinkedListNode
(value, head=None, tail=None)[source]¶ Bases:
object
A node in a
LinkedList
.-
value
¶ Any value.
-
head
¶ LinkedListNode
The node in front.
-
tail
¶ LinkedListNode
The node in back.
-
head
-
tail
-
value
-