MCPcopy
hub / github.com/scrapy/scrapy / iter_all

Function iter_all

scrapy/utils/trackref.py:79–84  ·  view source on GitHub ↗

Iterate over all objects of the same class by its class name

(class_name: str)

Source from the content-addressed store, hash-verified

77
78
79def iter_all(class_name: str) -> Iterable[Any]:
80 """Iterate over all objects of the same class by its class name"""
81 for cls, wdict in live_refs.items():
82 if cls.__name__ == class_name:
83 return wdict.keys()
84 return ()

Callers

nothing calls this directly

Calls 2

itemsMethod · 0.80
keysMethod · 0.80

Tested by

no test coverage detected