MCPcopy Create free account
hub / github.com/python-hyper/uritemplate / __iter__

Method __iter__

uritemplate/orderedset.py:57–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

55 link.next.prev = link.prev
56
57 def __iter__(self) -> t.Generator[str, None, None]:
58 # Traverse the linked list in order.
59 root = self.__root
60 curr = root.next
61 while curr is not root:
62 yield curr.key
63 curr = curr.next
64
65 def __reversed__(self) -> t.Generator[str, None, None]:
66 # Traverse the linked list in reverse order.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected