MCPcopy Create free account
hub / github.com/grantjenks/python-sortedcontainers / __iter__

Method __iter__

sortedcontainers/sorteddict.py:256–265  ·  view source on GitHub ↗

Return an iterator over the keys of the sorted dict. ``sd.__iter__()`` <==> ``iter(sd)`` Iterating the sorted dict while adding or deleting items may raise a :exc:`RuntimeError` or fail to iterate over all keys.

(self)

Source from the content-addressed store, hash-verified

254
255
256 def __iter__(self):
257 """Return an iterator over the keys of the sorted dict.
258
259 ``sd.__iter__()`` <==> ``iter(sd)``
260
261 Iterating the sorted dict while adding or deleting items may raise a
262 :exc:`RuntimeError` or fail to iterate over all keys.
263
264 """
265 return self._list_iter()
266
267
268 def __reversed__(self):

Callers 1

updateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected