Iterate over all objects of the same class by its class name
(class_name: str)
| 77 | |
| 78 | |
| 79 | def 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 () |